Illegal reflective access in RPC serializer

2023-10-30 Thread 'Samuel Padou' via GWT Users
Hi,

Working with Java 21 I have some issues with RPC serializer causing illegal 
reflective access in LinkedHashMap_CustomFieldSerializer.

I see that this has been fixed 
in https://github.com/gwtproject/gwt/issues/9584 but the fix is not 
included in the 2.10 release as far as I can see.

The workaround is to use --add-opens but this basically open the 
full java.util package for reflection which is not ideal. I also tried to 
replace the custom serializer, but due to the way custom serializers are 
loaded (using the exact package name), this doesn't seems possible without 
compiling a custom jar.

Is there any plan to make a release that include the fix for this issue, 
either 2.11 or a path of the 2.10?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/843a1666-9ac3-49d7-9ef9-2b8681b3653an%40googlegroups.com.


Crux Framework 5.4 Released

2015-12-18 Thread Samuel Cardoso
A new stable Crux Framework version is available. Crux 5.4 was released 
today and brings a lot of bug fixes and nice features. One of them is the 
new data binding model, similar to AngularJS but better because it is 
processed at compile time. We invite all of you to take a look at our MVC 
model by seeing the source code of our showcase 
 samples or by downloading a Hello World 
at the website . Don't forget to also run all 
of those samples in your mobile phone because all of our widgets are cross 
device. ;-)

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


gwt-google-api support

2015-02-10 Thread Samuel Cardoso
As GWT is now gaining force again, will we have support to gwt-google-api 
libraries again?
Particulary, I'm very interested in the gwt-gadgets project, but I'm seeing 
that the last commit was in november/2011. And the OpenSocial API is at 
2.0.x version but gwt-gadgets only covers the 1.0.x version.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need help calling GWT code from Javascript passing in generic arguments and/or callbacks -- URGENT

2014-09-25 Thread Samuel Schmid
Thank you! Helped me a lot!

On Tuesday, March 6, 2012 5:53:25 AM UTC+1, babakm wrote:

 I built an API in GWT for accessing a series of complex services. I 
 wanted to do tons of client side processing and I chose GWT (been 
 doing GWT for years now). However, my users will be using Javascript. 
 I can easily call GWT from Javascript. No problem. I set up a routine 
 I run as soon as my EntryPoint is invoked, and it runs some Javascript 
 (just as explained in GWT docs). The problem is that many (more like 
 ALL) of my objects and methods use callbacks (everything is async). 
 And in many cases, they take Java generics (good old C++ style 
 templates). For instance: 

 public static void getConnection(final CallbackConnection callback) 
 { 
 Connection.get(callback); 
 } 

 I want to register this method using: 

 public static native void exportStaticMethod() /*-{ 
 $wnd.computeLoanInterest = 
 $entry(@com.mhsystems.rsmapiproxy.client.SomeTestClass::computeLoanInterest(IFI));
  

 $wnd.getConnection = 
 $entry(@com.mhsystems.rsmapiproxy.client.SomeTestClass::getConnection(Lcom/ 

 mhsystems/rsmapiproxy/api/Callback)); 
 }-*/; 

 How do I do that? The first one (computeLoanInterest) works. The 
 second one, getConnection, does not. CallbackT is an interface (not 
 an object). Could that be the problem? I don't know how to declare the 
 generic Connection here. If that is not possible, I can write specific 
 objects but at the end of the day, I need the Javascript code to pass 
 in a Javascript callback that is called by the GWT code when it is all 
 said and done. 

 Cheerz!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] CSS3 support in CssResource: Closure Stylesheets?

2013-09-25 Thread Samuel Schmid
I'm a little bit late in this discoussion, i see there is a lot of work 
already on going.
But +1 for this.
SASS or LESS would be a big plus.
For me I think supporting OOCSS is more important than supporting CSS3 
without workarounds.

Thank you guys!
Sam


On Friday, December 16, 2011 11:51:43 PM UTC+1, Michael Vogt wrote:

 Hello.

  How could I refuse?  :) SGTM. We will of course, still have to
  maintain all of the GWT-isms. Actually, I've been wondering if we
  shoudn't just adopt LESS or SASS extensions too.
 
 Yes, please.


 Greetings,
 Michael



-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[gwt-contrib] Setting up Eclipse for Contributing to GWT

2013-09-25 Thread Samuel Schmid
Hi to all contributors

I'm developing with GWT since two years and now i want to contribute to GWT.

I checked out the GWT Source Code with

git clone https://gwt.googlesource.com/gwt trunk

But I don't understand how to setup my eclipse project.

Does somebody have some hints for me?

Sam

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[gwt-contrib] Re: Setting up Eclipse for Contributing to GWT

2013-09-25 Thread Samuel Schmid
No i did't saw that. Thanks for the hint. I'll check this and come back if 
I stuck.

Sam

On Wednesday, September 25, 2013 12:15:27 PM UTC+2, Thomas Broyer wrote:

 Have you tried following the eclipse/README.txt?

 BTW, you also need to svn checkout 
 http://google-web-toolkit.googlecode.com/svn/tools;

 On Wednesday, September 25, 2013 11:13:06 AM UTC+2, Samuel Schmid wrote:

 Hi to all contributors

 I'm developing with GWT since two years and now i want to contribute to 
 GWT.

 I checked out the GWT Source Code with

 git clone https://gwt.googlesource.com/gwt trunk

 But I don't understand how to setup my eclipse project.

 Does somebody have some hints for me?

 Sam



-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


using external .jar as object library

2013-07-03 Thread samuel . kallmeyer
Hi,
I'm starting with gwt, and I'm trying to create datas wich will be used 
later within the GWT project.
In order to create this library (POJO library), I'm using the common way: 
xsd + JAXB

In order to use it within the gwt, I added the inherits 
name='test.data.generated.Login'/ within my GWT project configuration file.
I did create manually the associated xml file for this class in the library 
project, which basically defines the entry point.

I ran into the following issue:

Hint: Your source appears not to live underneath a subpackage called 
'client'; no problem, but you'll need to use the source directive in your 
module to make it accessible 

Any idea ?

I guess as well that the xxx.gwt.xml can be automatically generated, any 
tutorial regarding this ?

Regards,

Samuel

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: java.util.MissingResourceException: Can't find bundle for base name com.google.gwt.dev.js.rhino.Messages, locale en_US

2013-03-29 Thread Samuel
Hi Petar ! I have the same problem : did you find the solution ?

Le lundi 18 mars 2013 15:55:44 UTC+1, pe...@tahchiev.net a écrit :

 [ERROR] com.google.gwt.user.client.rpc.SerializationException: Failed to 
 parse RPC payload
 [ERROR] at 
 com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.prepareToRead(ClientSerializationStreamReader.java:322)
  


[ERROR] Caused by: java.util.MissingResourceException: Can't find bundle 
 for base name com.google.gwt.dev.js.rhino.Messages, locale en_US



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




Call a script from my HTML file that resides in other files

2012-12-16 Thread Samuel Martin del Rio


I would like to know if it is possible to create a template in any 
language, HTML, CSS, jQuery, JavaScript, etc.

where I could create a template for my site with a header (with an image), 
sidebar (for instance a selector, images, and somethingelse), footer(with 
links to other pages like about page, contact us, etc), and I central area 
where I introduce a different code an info to each HTML page.

My idea is so I can modify only in one place the image of the header, the 
selector or the sidebar or any other element so it will change in all the 
HTML pages instead of having to have to change it in every single HTML page.

IF it is possible, how could I do it with the following selector?

Code:
select id=mySelect onchange=if(this.options[this.selectedIndex].value != 
''){window.top.location.href=this.options[this.selectedIndex].value} 
optionSelect an option/option option value=http://www.google.com;
Orange/option option value=http://www.google.com;Pineapple/option 
option value=http://www.google.com;Banana/option /select
 
 
I would have the code above in a file: MyFilesource.extension
 
and I would call from my index.html to that script. Somthing like MySelect 
and then the selector on MyFilesource.extension will appear on my index.html
 
 

Thanks so much 

-- 
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/-/7qBmZAla6HcJ.
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: CustomScrollPanel issue (extra div overlays generated impacting performance?)

2012-11-23 Thread Samuel Sandeep
Hi Seth,


Have you implemented the drag functionality for the vertical scrollbar?
I know you have more important things to do, but I'm asking out of 
desperation.



On Wednesday, April 11, 2012 1:23:59 AM UTC+5:30, GWTter wrote:

 Hi Deepak,

 Sure, I'll let you know once I add that functionality. Could be a little 
 while as that currently is not a priority compared to my other items, but 
 it definitely is needed and will be added.

 -Seth

 On Wednesday, April 4, 2012 4:30:01 PM UTC-4, Deepak Singh wrote:

 Ok.

 So request you to update me when you add this drag functionality. OR you 
 can give me some hints/suggestion so that i could also try a bit.

 Will be waiting for this one.

 Thanks
 Deepak

 On Thu, Apr 5, 2012 at 12:47 AM, GWTter seth...@gmail.com 
 javascript:wrote:

 Hi Deepak,

 Yes, sorry, I forgot to mention that I hadn't added the drag 
 functionality to the scrollbar since I had put that on hold to focus on 
 some other issues. So you should see the functionality with the scroll 
 wheel only currently.

 -Seth


 On Wednesday, April 4, 2012 1:26:44 PM UTC-4, Deepak Singh wrote:

 Hi Seth,

 It works. Thanks.

 But the scrolling happens only through the mouse wheel movement, it 
 does not scroll by dragging the bar in up and down direction.
 It simply gets dragged like an image. 


 On Wed, Apr 4, 2012 at 8:53 AM, GWTter seth...@gmail.com javascript:
  wrote:

 Hi Deepak,

 The most you should need to do is the following:

 AbsolutePanel absPanel = new AbsolutePanel();
 for(int i = 0; i  10; i++){
  SimplePanel simp = new SimplePanel();
  simp.setHeight(100px);
  simp.setWidth(500px);
  simp.getElement().getStyle().**setBackgroundColor(green);
  absPanel.add(simp);
 }

 MyScrollPanel scrollPanel = new MyScrollPanel();
 scrollPanel.setHeight(500px)**;
 scrollPanel.setWidth(100px);

 scrollPanel.add(absPanel);

 RootPanel.get().add(**scrollPanel);

 If the above code does not give you a green scrollable box then you 
 should recheck your code. With the code I sent you and the above code, 
 you 
 should have a custom scroll bar (not native). You should at the very 
 least 
 have the above code working. Hope this helps. Let me know.

 -Seth



 On Tuesday, April 3, 2012 1:59:33 PM UTC-4, Deepak Singh wrote:

 Hi Seth,

 I added the styles to myVerticalScrollBar. and added the entire page 
 content to MyScrollpanel but still the default scrollbar is there.

 Its not overridden.


 On Mon, Apr 2, 2012 at 9:39 PM, GWTter seth...@gmail.comjavascript:
  wrote:

 Hi Deepak,

 Yes, you would need to apply some style to your scrollbar so that it 
 at least has width (or height if you were using the horizontal 
 scrollbar). 
 If you look at the MyVerticalScrollBar constructor, the line 
 'this.setStyleName(**verticalSc**rollBar)' sets the style for the 
 scrollbar. This style is not defined in the myScrollPanel.css as that 
 CSS 
 file is only meant for the cornerpanel styling. You would need to 
 define 
 the style verticalScrollBar in your main CSS file. For example: 

 .verticalScrollBar{
   width: 10px;
   background: blue;
 }

 Also, make sure that the content you're scrolling is within the 
 MyScrollPanel, since only content within the MyScrollPanel will have 
 the 
 custom scroll bars, anything not within a CustomScrollPanel will still 
 default to the native implementation. Hope this helps.

 -Seth

 -Seth


 On Monday, April 2, 2012 11:44:57 AM UTC-4, Deepak Singh wrote:

 Nothing more than what i sent you.

 I have just myScrollPanel.css as mention above.

 Could you pls guide me with css if i need to apply some css over 
 vertical scrollbar?

 Thanks in advance
 Deepak

 On Mon, Apr 2, 2012 at 8:19 PM, GWTter seth...@gmail.comjavascript:
  wrote:

 Hi Deepak,

 This looks good to me. What style are you using for the vertical 
 scrollbar?

 And thanks for the repost.

 -Seth


 On Sunday, April 1, 2012 3:50:12 PM UTC-4, Deepak Singh wrote:

 Hi Seth,

 I am posting my code here:

 myScrollPanel.css
 @CHARSET ISO-8859-1;

 .customScrollPanel{
 }
 .customScrollPanelCorner{
 opacity: 0.0;
 }

 MyScrollPanel.java

 public class MyScrollPanel extends CustomScrollPanel {
  /**
  * Extends the CustomScrollPanel Resources interface so that we 
 can add our own css file and still reuse the Resources and Style 
 interfaces 
 from CustomScrollPanel
  * @author SL
  *
  */
  public interface MyScrollResources extends Resources{

 @Source(com/pdstechi/client/**m**yScrollPanel.css)
  Style customScrollPanelStyle();
 }
  public MyScrollPanel(){
 super((MyScrollResources)GWT.**c**reate(MyScrollResources.**
 class)**);
  this.setVerticalScrollbar(new MyVerticalScrollBar(), 
 MyVerticalScrollBar.**getScrollB**arWidth());
 // this.setHorizontalScrollbar(**ne**w 
 MyHorizontalScrollBar(), MyHorizontalScrollBar.**getScrol**
 lBarHeight());
  }

 }


 MyVerticalScrollBar.java

 public class MyVerticalScrollBar extends Widget implements 
 VerticalScrollbar {
 private double 

Re: Problemas con GWTP

2012-01-20 Thread Samuel Tasna
*

The problem I have is with the persistence, before developing a small
application
starts using Netbeans, GWT 2.1, 0.5 gwtp all, hibernate, as the tool
develops andofficial IDE is eclipse wanted to migrate the code to eclipse,
there is now GWT2.4but this persistent problem, no connection to the db,
setting, copying sample codenow makes the connection to hang appeared the
WARN db and send it.
Now the problem is that data are not displayed any error does not come out and
thought it was for the WARN. 19/01/2012 but yesterday I discovered that if
you make the connection but no where is the error, plus I can not migrate a
portion of code above q is the menu bar on the main screen gives me an
error that is:
Error loading menu:

(as history was developing an architecture for developing application (XXX)
that is to create a generic class, etc ...)
I would appreciate if I can help

14:32:28.546 [ERROR] [com.wipay.esafw] Uncaught exception escaped
com.google.gwt.event.shared.UmbrellaException: One or more exceptions
caught, see full set in UmbrellaException#getCauses
at
com.google.gwt.event.shared.EventBus.castFireEventFromSource(EventBus.java:77)
at
com.google.gwt.event.shared.SimpleEventBus.fireEventFromSource(SimpleEventBus.java:67)
at
com.gwtplatform.mvp.client.PresenterWidget.fireEvent(PresenterWidget.java:254)
at
com.gwtplatform.mvp.client.proxy.RevealRootContentEvent.fire(RevealRootContentEvent.java:51)
at
com.wipay.esafw.client.presenter.esafwapp.EsafwAppP.revealInParent(EsafwAppP.java:85)
at com.gwtplatform.mvp.client.Presenter.forceReveal(Presenter.java:189)
at
com.gwtplatform.mvp.client.proxy.ProxyPlaceAbstract.manualReveal(ProxyPlaceAbstract.java:227)
at
com.gwtplatform.mvp.client.proxy.ProxyPlaceAbstract$3$1.execute(ProxyPlaceAbstract.java:213)
at
com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerImpl.java:50)
at
com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:228)
at
com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(SchedulerImpl.java:388)
at
com.google.gwt.core.client.impl.SchedulerImpl$Flusher.execute(SchedulerImpl.java:78)
at
com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Unknown Source)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError):
Cannot read property 'length' of undefined
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.widgets.BaseWidget.draw(BaseWidget.java)
at
com.smartgwt.client.widgets.BaseWidget.getElement(BaseWidget.java:289)
at

Re: Problemas con GWTP

2012-01-20 Thread Samuel Tasna
thanks, I'll keep trying to locate the error be if

2012/1/20 Hilco Wijbenga hilco.wijbe...@gmail.com

 On 20 January 2012 11:42, Samuel Tasna wip...@gmail.com wrote:
  *
 
  The problem I have is with the persistence, before developing
  a small application starts using Netbeans, GWT 2.1, 0.5 gwtp all,
 hibernate,
  as the tool develops andofficial IDE is eclipse wanted to migrate the
 code
  to eclipse, there is now GWT2.4but this persistent problem,
  no connection to the db, setting, copying sample codenow makes the
  connection to hang appeared the WARN db and send it.
  Now the problem is that data are not displayed any error does not come
  out and thought it was for the WARN. 19/01/2012 but yesterday I
 discovered
  that if you make the connection but no where is the error, plus I can
  not migrate a portion of code above q is the menu bar on the main
  screen gives me an error that is:
  Error loading menu:
 
  (as history was developing an architecture for developing application
 (XXX)
  that is to create a generic class, etc ...)
  I would appreciate if I can help
 
  14:32:28.546 [ERROR] [com.wipay.esafw] Uncaught exception escaped
  com.google.gwt.event.shared.UmbrellaException: One or more exceptions
  caught, see full set in UmbrellaException#getCauses
  at
 
 com.google.gwt.event.shared.EventBus.castFireEventFromSource(EventBus.java:77)
  at
 
 com.google.gwt.event.shared.SimpleEventBus.fireEventFromSource(SimpleEventBus.java:67)
  at
 
 com.gwtplatform.mvp.client.PresenterWidget.fireEvent(PresenterWidget.java:254)
  at
 
 com.gwtplatform.mvp.client.proxy.RevealRootContentEvent.fire(RevealRootContentEvent.java:51)
  at
 
 com.wipay.esafw.client.presenter.esafwapp.EsafwAppP.revealInParent(EsafwAppP.java:85)

 This is your first clue (it also appears in the second stack trace).

  at
 com.gwtplatform.mvp.client.Presenter.forceReveal(Presenter.java:189)
  at
 
 com.gwtplatform.mvp.client.proxy.ProxyPlaceAbstract.manualReveal(ProxyPlaceAbstract.java:227)
  at
 
 com.gwtplatform.mvp.client.proxy.ProxyPlaceAbstract$3$1.execute(ProxyPlaceAbstract.java:213)
  at
 
 com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerImpl.java:50)
  at
 
 com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:228)
  at
 
 com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(SchedulerImpl.java:388)
  at
 
 com.google.gwt.core.client.impl.SchedulerImpl$Flusher.execute(SchedulerImpl.java:78)
  at
 
 com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:138)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
  at
  com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
  at
 
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
  at
 
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
  at
 
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
  at
 
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
  at
  com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
  at
 
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
  at
 
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
  at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
  at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
  at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
  at
  com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
  at
 
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
  at
 
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
  at
 
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
  at
 
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
  at java.lang.Thread.run(Unknown Source)
  Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError):
  Cannot read property 'length' of undefined

 This is your second clue.

  at
 
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248

is it possible to add image in cellTable Header

2011-09-21 Thread samuel
Is it possible to add image on celltable header, I build celltable
with rows and columns. I am not yet clear adding to image to celltable
header. give your suggestion .

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



Change the fontsize, color of cellTable header ?

2011-09-21 Thread samuel
I wana going to change the celltable header property of size, color.
Give your suggestion for me.

-- 
You received 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 Binder error problem? show [ERROR] Element may only contain a single child element, but found g:VerticalPanel ui:field='panel1' and g:VerticalPanel ui:field='panel2'. Element g:center

2011-09-20 Thread samuel
I got the problem when I compile my project. I write my error .xml
file.

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
g:DockLayoutPanel ui:field=dock
g:north size=25
g:FlowPanel
g:Button ui:field=saveSave/
g:Button
/g:FlowPanel
/g:north
g:center
g:VerticalPanel ui:field=panel1
g:Button ui:field=button1print/
g:Button
g:Button ui:field=button2clear/
g:Button
/g:VerticalPanel
  g:VerticalPanel ui:field=panel2
g:TextArea ui:field=textArea /
/g:VerticalPanel
/g:center
/g:DockLayoutPanel
/ui:UiBinder

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



NoClassDefFoundError on Tomcat versus Hosted Mode with Jetty

2011-09-06 Thread Samuel
I have identical code that throws a NoClassDefFoundError when
executing on Tomcat versus works fine with Hosted Mode with Jetty.

The exception is:
ERROR ajp-8009-3 org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/GSSCalendar] - Exception while dispatching incoming RPC
call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
com.company.client.EngineerDAOService.readCalendarFromEngineer(java.lang.String)
throws java.lang.IllegalArgumentException' threw an unexpected
exception: java.lang.NoClassDefFoundError: Could not initialize class
net.fortuna.ical4j.data.CalendarParserFactory
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
385)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

The WEB-INF/lib is:
ls war/WEB-INF/lib/
antlr-2.7.6.jar
hibernate3.jar
backport-util-concurrent-3.1.jar ical4j-1.0-
rc3.jar
c3p0-0.9.1.jar
javassist-3.12.0.GA.jar
commons-collections-3.1.jar  joda-
time-2.0.jar
commons-io-2.0.1.jar jta-1.1.jar
dom4j-1.6.1.jar
log4j-1.2.16.jar
gwt-servlet.jar  mysql-
connector-java-5.1.17-bin.jar
hibernate-jpa-2.0-api-1.0.1.Final.jarslf4j-
api-1.6.1.jar
hibernate-validator-4.2.0.Final.jar  slf4j-
log4j12-1.6.2.jar
hibernate-validator-annotation-processor-4.2.0.Final.jar validation-
api-1.0.0.GA.jar

Which contains the ical4j-1.0-rc3.jar:
egrep -ir CalendarParserFactory /var/lib/tomcat6/webapps/GSSCalendar/
WEB-INF/lib/
Binary file /var/lib/tomcat6/webapps/GSSCalendar/WEB-INF/lib/
ical4j-1.0-rc3.jar matches


So the class is definitely there in the jar in the WEB-INF/lib in the
webapp.  The code that throws this looks like (abridged):

engineerService.readCalendarFromEngineer(userid, new
AsyncCallbackString() {...}

com.jboss.support.server.EngineerDAOServiceImpl.java contains:
@Override
public String readCalendarFromEngineer(String userid) throws
IllegalArgumentException {
CalendarParser calendarParser = new CalendarParser();
return calendarParser.readEngineerCalendar(userid);
}

It is in the CalendarParser where the ical libraries are called.  Only
the server side should ever touch the ical libraries, and from looking
at the code I've written, that is the case.  I can't figure out why
then on the RPC call the CalendarParserFactory can't be found in
Tomcat.  Any and all help is greatly appreciated.

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



Re: Attn::Unix Administrator Requirement in Framingham, MA::Please respond back at di...@abacuscs.com::

2011-01-20 Thread Anil Samuel
Could you please post these in another appropriate list ? this list is meant
for GWT.

On Fri, Jan 21, 2011 at 7:15 AM, Dipin Sukumaran dipin.j...@gmail.comwrote:

 Hi,

 Hope you are doing well. This is Dipin (di...@abacuscs.com ) from Abacus
 Management  consultancy services. Please review my Urgent Client
 requirement below. ::Please respond back at di...@abacuscs.com::

 Position: Unix Administrator .

 Location: Framingham, MA.

 Duration: 6-8 Months

 Hourly Rate: Open

 Face to Face Required: NO

 *Key Skills:-*

 · Heavy Linux Experience.**

 · AIX Experience.**

 · Scripting, Disaster Recovery, Plastering, High Availability,
 Scripting, VMWare**

 *Required Skills:-*

 · Install UNIX/Linux operating systems, apply patches, manage file
 systems, monitor performance and troubleshoot alerts from commercial, and
 locally developed monitoring tools.

 · System failure analysis and recovery; insuring the consistency
 and integrity of file systems. Business continuity planning.

 · Hardware/software configuration and management. Liaison with
 client offices, operations personnel, and field service personnel; interact
 directly with internal customers or external service provider to negotiate
 solutions and implementation specifics.

 · Technical support and general troubleshooting. 24x7 on call
 support rotation.

 · Manage and lead hardware and software migration and upgrade
 efforts of varying size and complexity.

 If interested then do send me your updated resume to di...@abacuscs.com 
 immediately with following details to discuss further.

 · Full Name

 · Current Location:

 · Email:

 · Contact Number:

 ·  Work Status:

 · Current Salary/Hourly Rate:

 · Notice Period/Availability:

 · Expected Rate on c2c/1099 Basis:

 · Employer Details in Case of c2c Contract(Complete Details):

 · F2f Interview after telephonic round @ own Cost (Yes/No):

 · Best time to call:

 · Need 100% matching resume as per the requirement:

  It has been a pleasure writing to you. I am looking forward to work with
 you as you grow in your career.


 --
 
 Thanks  Regards,

 Dipin Sukumaran
 Executive – Business Development  Technical Recruiter
 Abacus Management  Consultancy Services*
 *Tel (Direct) :* *1-703-372-7941*
 *Fax : 1-540-301-8166*
 *Email:-* *di...@abacuscs.com *
 *www.abacs.com*


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




-- 
Anil Samuel
My t(r)ickling thoughts at
http://anilsamuel.blogspot.com
http://www.linkedin.com/in/anthos

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



JS AST interchange

2010-02-26 Thread Mike Samuel
I want to do do some integration between my project, Caja, and others
like GWT and the Closure Compiler.
Although each project is implemented in Java, each has their own
syntax tree implementation : com.google.caja.parser.ParseTreeNode,
com.google.gwt.dev.js.ast.JsNode, com.google.javascript.rhino.Node.

What do people think about using something like
http://code.google.com/p/es-lab/wiki/JsonMLASTFormat as a common
interchange format?  If each project could serialize / deserialize
parse trees to and from this format, then it might be possible to
separate out some of the generally useful optimization and analysis
passes each contains.

This format can store meta-information (e.g., source location info)
that is not part of the parse tree in a way that can round trip well
and that would get lost if javascript source were used as the
interchange format.  It can also work well with systems that produce
invalid parse trees as intermediate forms, e.g. with hanging elses and
numeric literals that might render as references to masked variables
prior to alpha-renaming.

Any other projects that might benefit from this?  YUI compressor seems
to use a variant of the codebase that Closure does, and Dojo
shrinksafe seems to use the same but doesn't build a parse tree.

cheers,
mike

-- 
You received 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: [closure-compiler-discuss] JS AST interchange

2010-02-26 Thread Mike Samuel
2010/2/26 Nick Santos nicksan...@google.com:
 On Fri, Feb 26, 2010 at 4:33 PM, Mike Samuel mikesam...@gmail.com wrote:

 This format can store meta-information (e.g., source location info)
 that is not part of the parse tree in a way that can round trip well
 and that would get lost if javascript source were used as the
 interchange format.  It can also work well with systems that produce
 invalid parse trees as intermediate forms, e.g. with hanging elses and
 numeric literals that might render as references to masked variables
 prior to alpha-renaming.

 When you say that systems that produce invalid parse trees, you say
 that as if it's an advantage. It's seems to me that this makes things
 much, much harder. Each of our 3 parsers would need to know the
 possible invalid states of the other 2.

Some trees are logically valid, but cannot be produced by any parser.
For example, in caja,
  if (foo) { if (bar) boo; } else baz;
parses to a structure like
  (Conditional
(Reference (Identifier : foo))
(Block
  (Conditional
(Reference (Identifier : bar))
(ExpressionStmt
  (Reference (Identifier : bar)
(ExpressionStmt
  (Reference (Identifier : baz
Note that without the curly brackets there would be no (Block) node.

There are local preconditions in parse tree constructors and mutators
that prevent logically impossible structures, but these local
preconditions can't check nonlocal constraints like hanging-elses.
A pass that removed all Blocks with single children might produce the
logically valid, but unparseable
  (Conditional
(Reference (Identifier : foo))
(Conditional
  (Reference (Identifier : bar))
  (ExpressionStmt
(Reference (Identifier : bar
(ExpressionStmt
  (Reference (Identifier : baz


 Or maybe your definition of invalid is different than mine here.

Invalid was probably the wrong word to use here.  I meant just a
syntax tree that cannot be produced by the parser,  and did not mean
to suggest that it violated logical constraints.

 i'm also curious about the answers to Joey and Robert's questions.

 Nick


-- 
You received 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: [closure-compiler-discuss] JS AST interchange

2010-02-26 Thread Mike Samuel
2010/2/26 Joseph Schorr (יוסף שור) jsch...@google.com:
 Would we also have a defined, common format for representing types? I think
 that would be critical for sharing some of the more advanced optimization
 phases.

I don't know.  Caja's optimizations have a very simplistic notion of type.

An expression can be typed as
  truthy or falsey
where (x) is truthy iff !!(x) always either fails to exit normally or
yields true.
or falls into the following type hierarchy
  object
null
reference = truthy
  function
  primitive
string
number
boolean
  undefined

Coming up with a way of representing facts about expressions would be great.
A fact might be
  this node always evaluates to the same value as this simpler
non-side effecting expression
  this node is never reached
  this node exits abnormally or produces a value with this closure type
  the author asserted that this node has a given closure type
We could store such info in the annotations and/or inferences
properties of nodes.

 Thanks,
 Joey

 On Fri, Feb 26, 2010 at 4:33 PM, Mike Samuel mikesam...@gmail.com wrote:

 I want to do do some integration between my project, Caja, and others
 like GWT and the Closure Compiler.
 Although each project is implemented in Java, each has their own
 syntax tree implementation : com.google.caja.parser.ParseTreeNode,
 com.google.gwt.dev.js.ast.JsNode, com.google.javascript.rhino.Node.

 What do people think about using something like
 http://code.google.com/p/es-lab/wiki/JsonMLASTFormat as a common
 interchange format?  If each project could serialize / deserialize
 parse trees to and from this format, then it might be possible to
 separate out some of the generally useful optimization and analysis
 passes each contains.

 This format can store meta-information (e.g., source location info)
 that is not part of the parse tree in a way that can round trip well
 and that would get lost if javascript source were used as the
 interchange format.  It can also work well with systems that produce
 invalid parse trees as intermediate forms, e.g. with hanging elses and
 numeric literals that might render as references to masked variables
 prior to alpha-renaming.

 Any other projects that might benefit from this?  YUI compressor seems
 to use a variant of the codebase that Closure does, and Dojo
 shrinksafe seems to use the same but doesn't build a parse tree.

 cheers,
 mike



-- 
You received 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: Deployed GWT on ubuntu tomcat is now read-only for sql.

2009-11-24 Thread Samuel Larkin
Problem solved!
Tomcat was overriding catalina.policy upon restart which erased the needed

grant codeBase file:${catalina.home}/webapps/- {
  permission java.security.AllPermission;
};

This must be added under policy.d/yourPolicy at leat under Ubuntu in order
to work properly.

On Sun, Nov 22, 2009 at 9:14 PM, Samuel samuel.lar...@gmail.com wrote:

 Hi,
  I'm building a GWT apps which works as expected from the hosted mode
 in Eclipse.  I require an access to mysql in my which is hosted on my
 server.  To make hosted mode work, I make an ssh tunnel to my server
 and like I said, I can select and update my mysql db.  When I deploy
 my app on my server, the same that hosts mysql, I can read my db
 (select) but I can't update it anymore.  Looks like it's read-only.

 Here's what I'm getting.

 23-Nov-2009 2:07:47 AM org.apache.catalina.core.ApplicationContext log
 SEVERE: Exception while dispatching incoming RPC call
 java.security.AccessControlException: access denied
 (java.lang.reflect.ReflectPermission suppressAccessChecks) ^Iat
 java.security.AccessControlContext.checkPermission
 (AccessControlContext.java:323) 

 I added those lines to catalina.policy:
 grant codeBase file:${catalina.home}/webapps/- {
   permission java.net.SocketPermission 192.168.36.9:3306,
 connect;
   permission java.net.SocketPermission localhost:3306, connect;
 };


 Using GWT1.7, ubuntu 8.04, tomcat, mysql.

 --

 You received 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%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=.




--

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




Deployed GWT on ubuntu tomcat is now read-only for sql.

2009-11-22 Thread Samuel
Hi,
  I'm building a GWT apps which works as expected from the hosted mode
in Eclipse.  I require an access to mysql in my which is hosted on my
server.  To make hosted mode work, I make an ssh tunnel to my server
and like I said, I can select and update my mysql db.  When I deploy
my app on my server, the same that hosts mysql, I can read my db
(select) but I can't update it anymore.  Looks like it's read-only.

Here's what I'm getting.

23-Nov-2009 2:07:47 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Exception while dispatching incoming RPC call
java.security.AccessControlException: access denied
(java.lang.reflect.ReflectPermission suppressAccessChecks) ^Iat
java.security.AccessControlContext.checkPermission
(AccessControlContext.java:323) 

I added those lines to catalina.policy:
grant codeBase file:${catalina.home}/webapps/- {
   permission java.net.SocketPermission 192.168.36.9:3306,
connect;
   permission java.net.SocketPermission localhost:3306, connect;
};


Using GWT1.7, ubuntu 8.04, tomcat, mysql.

--

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




Callin an URL from my application

2009-07-18 Thread samuel

Hi Group,

  I have a requirement where I am making use of an URL for sending
mails. Some thing like this

http://www.examplemailsending.com/messageapi.asp?username=usernamepassword=passworddestination=A1,A2,A3message=Hi

 I am making a list of all the people A1, A2, A3... to whom the Hi
message needs to be sent.

 Can someone tell me which is the best way to implement this
requirement??

PS :  I necessarily need to use the link to send the message.

Regards,
Abhiram

--~--~-~--~~~---~--~~
You received 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: Draw circle with gwt-maps library

2008-09-28 Thread Samuel

I did it ! :)

With Polygon.. it's a bit long, but It's work...
I use the JS example in : http://maps.forum.nu/gm_sensitive_circle2.html

With GWT it is :

public void doDrawCircle(LatLng center, double radius) {

LatLng[] circlePoints = new LatLng[361];
Polygon circle;

double PI = 3.1415;

double d = radius / 6378.8; // radians

double lat1 = (PI / 180) * center.getLatitude(); // radians
double lng1 = (PI / 180) * center.getLongitude(); // radians

for (int a = 0; a  361; a++) {
double tc = (PI / 180) * a;
double y = Math.asin(Math.sin(lat1) * Math.cos(d) + 
Math.cos(lat1)
* Math.sin(d) * Math.cos(tc));
double dlng = Math.atan2(Math.sin(tc) * Math.sin(d)
* Math.cos(lat1), Math.cos(d) - 
Math.sin(lat1)
* Math.sin(y));
double x = ((lng1 - dlng + PI) % (2 * PI)) - PI; // MOD 
function
LatLng point = LatLng.newInstance(y * (180 / PI), x * 
(180 / PI));
circlePoints[a] = point;
}

circle = new Polygon(circlePoints, #FF, 1, 1.0, 
#FF, .
7);
map.addOverlay(circle);
}

Thanks eric for Week-end support ;)

Samuel

On 28 sep, 00:47, Eric Ayers [EMAIL PROTECTED] wrote:
 Actually, I was referring to the Maps API when I said I couldn't find a way
 to do it.



 On Sat, Sep 27, 2008 at 10:58 AM, Samuel [EMAIL PROTECTED] wrote:

  Thanks eric,

  I'm sure it's possible with Maps API, but with the gwt-maps API I
  can't find solution.

  Maybe it's a good solution to use image...
  But I need use getBounds().containsLatLng(..) to known if a point is
  in this circle. I'm not sure it's work with a picture...

  Samuel

  On 27 sep, 15:24, Eric Ayers [EMAIL PROTECTED] wrote:
   Samuel,

   You might want to go search the Maps API google group for this one. I
  don't
   see an obvious way to make one (like a GCircle or GEllipse class).

   The geodesic polyline support uses a segmented line to represent an arc.
   You could do that by creating a lot of points out for a Polygon.

   Another way you could do this is to create an image of a circle and then
   make a GroundOverlay out of it.  It would look a bit different from a
   Polyline or Polygon.

   -Eric.

   On Sat, Sep 27, 2008 at 3:58 AM, Samuel [EMAIL PROTECTED] wrote:

Hi,

I have a very simple question :)
How draw a circle in a maps with gwt-maps library ?
Have you got an example ? (I do Polygon but I can't make circle :( )

Thanks

Samuel

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

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Draw circle with gwt-maps library

2008-09-27 Thread Samuel

Hi,

I have a very simple question :)
How draw a circle in a maps with gwt-maps library ?
Have you got an example ? (I do Polygon but I can't make circle :( )

Thanks

Samuel

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Draw circle with gwt-maps library

2008-09-27 Thread Samuel

Thanks eric,

I'm sure it's possible with Maps API, but with the gwt-maps API I
can't find solution.

Maybe it's a good solution to use image...
But I need use getBounds().containsLatLng(..) to known if a point is
in this circle. I'm not sure it's work with a picture...

Samuel

On 27 sep, 15:24, Eric Ayers [EMAIL PROTECTED] wrote:
 Samuel,

 You might want to go search the Maps API google group for this one. I don't
 see an obvious way to make one (like a GCircle or GEllipse class).

 The geodesic polyline support uses a segmented line to represent an arc.
 You could do that by creating a lot of points out for a Polygon.

 Another way you could do this is to create an image of a circle and then
 make a GroundOverlay out of it.  It would look a bit different from a
 Polyline or Polygon.

 -Eric.

 On Sat, Sep 27, 2008 at 3:58 AM, Samuel [EMAIL PROTECTED] wrote:

  Hi,

  I have a very simple question :)
  How draw a circle in a maps with gwt-maps library ?
  Have you got an example ? (I do Polygon but I can't make circle :( )

  Thanks

  Samuel

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: date picker

2008-09-02 Thread Samuel Santos

I need to handle some events fired by the TextBox like the onChange.

Unfortunately the DateBox only has a keyDownHandler.

Is there a way to handle other events? Why not have the handlers for
the TextBox events?

Cheers,
Samuel

On Aug 24, 10:06 am, ljw1001 [EMAIL PROTECTED] wrote:
 On Aug 23, 2008, at 8:29 PM, Brian [EMAIL PROTECTED] wrote:



  what I did was pull gwt and build, then pull incubator and point the
  incubator project to my newly built gwt (1.5+ trunk build).  There are
  a couple of unchecked exceptions in the current (1.4) incubator that
  don't work well with projects compiled with 1.5 gwt.  At least,
  IntelliJ complained, so I went about finding out why.  I fixed the
  issues in DatePicker (let me know if you need info on this).

 I would appreciate it. Thanks

  Then in
  my project (finally) I pointed it to my built 1.5 gwt and incubator,
  and use the DatePicker with no probs.
  On Aug 23, 2:39 pm, Samuel Santos [EMAIL PROTECTED] wrote:
  GWT 1.5 already is RC2 :)

  On Aug 23, 7:33 pm, Jason Essington [EMAIL PROTECTED]
  wrote:

  right, that jar was built as the last version of incubator that
  would
  work with GWT 1.4.

  You'll have to build an incubator jar from SVN trunk to get a jar
  that'll work with 1.5.

  Maybe once GWT 1.5 goes RC Google will release a new Incubator 1.5
  build.

  -jason

  On Aug 23, 2008, at 12:13 PM, Samuel Santos wrote:

  GWT incubator's date picker could be a good choice, but I can't
  make
  gwt-incubator 1.4 final work with GWT 1.5 RC1 or RC2.

  -Samuel

  On Aug 23, 2:51 am, Tim [EMAIL PROTECTED] wrote:
  how about GWT (Ext-GWT)http://www.extjs.com/explorer/#datepicker?
  Also no go?.
  If not, then I'd say GWT incubator's date picker is your best
  bet...http://google-web-toolkit-incubator.googlecode.com/svn/
  trunk/demo/Dat
  ...

  On Aug 22, 8:36 pm, Samuel Santos [EMAIL PROTECTED] wrote:

  Yes I like the Ext calendar, but I don't want to use GWT-Ext nor
  ExtJS.

  On Aug 22, 9:09 am, KaBooFa [EMAIL PROTECTED] wrote:

  Have you tried the gwt-ext DatePicker it seams to answer your
  needs.

  Check this out:http://www.gwt-ext.com/demo/#datePicker

  Regards

  On Aug 21, 7:43 pm, Isaac Truett [EMAIL PROTECTED] wrote:

  Extend DatePicker and supply your own MonthSelector.You can use
  whatever Widgets you want to control the month and year.

  On Thu, Aug 21, 2008 at 10:00 AM, Samuel Santos
  [EMAIL PROTECTED] wrote:

  The problem with those date pickers is that they don't have a
  combo to
  choose the year, very useful when choosing someone birthday.

  On Aug 21, 11:57 am, eggsy84 [EMAIL PROTECTED] wrote:
  I have not looked at the Data Picker itself but is it similar
  to the
  one found here:

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

  Online demo at:http://www.zenika.com/demos/DatePicker/

  

  On Aug 20, 9:30 pm, Jason Essington
  [EMAIL PROTECTED] wrote:

  I think that they are using the incubator date picker with
  some
  modifications.

  Have a look at the date picker in incubator and see if it
  doesn't do
  what you need.

  -jason
  On Aug 20, 2008, at 12:44 PM, luisafonsoribeiro wrote:

  Hi,

  I really like the date picker available on google health.
  Is
  google
  health using gwt? If so, any chance of turning it available
  as a
  widget?

  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---