Re: override RemoteServiceServlet.processCall to process custom annotations

2009-02-25 Thread federico

any idea on this??

On 24 Feb, 09:18, federico  wrote:
> Hi
> i'd like to do the override of RemoteServiceServlet.processCall to
> insert the code for processing my custom annotations on service
> invocations.
> I've noted how the default processCall make use of the RPC class:
> ...
>       return RPC.invokeAndEncodeResponse(this, rpcRequest.getMethod(),
>           rpcRequest.getParameters(), rpcRequest.getSerializationPolicy
> ());
> ...
>
> and expecially the method invokeAndEncodeResponse that i found
> difficult to reuse due to the fact that it has two distinct
> responsabilities when maybe it would be better to have splitted this
> method in two... anyway
> the problem i have it's this:
> in my processCall i'd like to have access to catch the exceptions
> throwed by my service method but
> invokeAndEncodeResponse don't rethrow an exception occurred during the
> service invocation, and of course it can't because normally it must
> encode the exception in the returned payload.
>
> On the other sida i'd like very much to reuse the RPC class because it
> do a lot of interesting things that i don't want to lose, any opinions
> on this...
>
> federico
--~--~-~--~~~---~--~~
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: CheckBox alignment

2009-02-25 Thread alex.d



On 24 Feb., 21:02, jonty  wrote:
> Hi,
Good day to you too,
>
> I want the text with checkbox to appear to the right instead of left.
> How can I do it??

Make your own widget - myFancyCheckbox. In it: place a horizontalPanel
with a Label and an empty Checkbox. Write the necessary methods like
setText() etc.

> Also I want checkbox and textfield to appear in horizontal.
Hmm... what?

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



Re: Spring Security and GWT : how I've done

2009-02-25 Thread David

I've added additional information (examples mainly) and will upload a
jar ASAP in order to make it easy to test.

And do not hesitate to give me feedback.

David

On Feb 22, 4:13 pm, jossey  wrote:
> Hi David,
> I really appreciate you sharing this.
> Thanks.
>
> On Feb 19, 3:03 pm, David  wrote:
>
> > Hi everyone,
>
> > This is my second message promoting something I've put in my "GWT test
> > area" :) I hope you'll find it useful : It may help people to
> > integrate Spring Security with GWT applications in a clean (that's my
> > non-objective POV ! :)) way.
>
> > Here is a small introduction on how it works ; a more detailed
> > description is available on code.google.com. See the link at the end
> > of this message.
>
> > First thing : it uses GWT-SL to use simple Spring beans to serve RPC
> > calls. I've extended the original GWTHandler in order to provide a
> > convenient way to manage Security exceptions. I've also provided a
> > specific ExceptionTranslationFilter that can deal with security
> > exception too.
>
> > With these two parts, people can handle both URL filtering and AOP
> > strategies.
>
> > As usual, feel free to post your comments, I'll really appreciate your
> > feedback.
>
> > Here is the URL of the Google Code's project 
> > :http://code.google.com/p/gwt-incubator-lib
>
> > David
>
>
--~--~-~--~~~---~--~~
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: CheckBox alignment

2009-02-25 Thread Mahavir Jain
Also you can set the alignment of individual cells in horizontal panel using
hPanel.setCellHorizontalAlignment(myCheckbox,
HasHorizontalAlignment.ALIGN_RIGHT);

Mahavir

On Wed, Feb 25, 2009 at 2:32 PM, alex.d wrote:

>
>
>
> On 24 Feb., 21:02, jonty  wrote:
> > Hi,
> Good day to you too,
> >
> > I want the text with checkbox to appear to the right instead of left.
> > How can I do it??
>
> Make your own widget - myFancyCheckbox. In it: place a horizontalPanel
> with a Label and an empty Checkbox. Write the necessary methods like
> setText() etc.
>
> > Also I want checkbox and textfield to appear in horizontal.
> Hmm... what?
>
> > Please tell me how can i do it ??
> >
> > Thanks
> >
>

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



Re: json date

2009-02-25 Thread Dimitrijević Ivan

You can use sql99 standard (-MM-DD hh:mm:ss) to format date as
string in php and write your parser which will convert sql99 date
String into Date object in GWT.

GWT implements Date object but without support for class
GregorianCalendar, so your date parser should use some depricated
methods.

Best regards.



On Feb 25, 8:19 am, sutarsa giri  wrote:
> so that's was probably the reason of that.
>
> well, seems that i need to use string for date.Thx for your information
>
> regards,
> gede sutarsa
>
>
>
> On Wed, Feb 25, 2009 at 2:47 PM, Jason Morris  wrote:
>
> > The JSON spec actually has no way of representing a date.
>
> > There are several possible methods (and hacks) that allow you to ship dates
> > over JSON (though none
> > of them are really perfect).
>
> > I would personally recommend sending dates as UTC numbers, since that way
> > you don't have to hack the
> > JSON encoding / decoding process to get it to work, the disadvantage being
> > you loose readability of
> > your data (as plain text).
>
> > Hope that helps a bit.
> > //J
>
> > sutarsa giri wrote:
> > > dear all,
> > > I'm trying to use php as beckend for my gwt application( actually I'm
> > > not really confortable with gwt+json, but I don't have choice   ),
> > > There is a thing that make me confuse. there is
> > > JSONString,JSONNumber,JSONObject,JSONBoolean, but why there is no built
> > > in JSONDate?
>
> > > did anyone know why?, i'm also try to googling about json date. but it's
> > > lead me to another confusion. any pointer woud be helped
>
> > > thx and regards,
> > > Gede sutarsa
--~--~-~--~~~---~--~~
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: any generic hook for "all ajax requests complete" for Selenium testing?

2009-02-25 Thread Korny Sietsma

Thanks - that's useful; I'll dig into how DeferredCommand works...

- Korny

On Tue, Feb 24, 2009 at 11:22 PM, chuckp
 wrote:
>
> Hi Korny,
>
> Not sure if this is of any help, but there is a Class in GWT called
> DeferredCommand.  Apparently it is executed after all currently
> pending event handlers have completed  Now assuming that your
> Asynchronous activity is an event???  Then maybe you can utilise this
> Class at the end of your logic.  It should only execute if your
> application is in a passive state, ie. all events have finished.
>
> I have used this with an Remote Call successfully.  I use it to
> display a table widget only after the widget has been built.  The
> widget is a table built from a database request, so it takes a few
> milliseconds to build, but has a flicker.  Using this Class removes
> the flicker.
>
> Hope this is of some help,
>
> - Chuck
> >
>



-- 
Kornelis Sietsma  korny at my surname dot com
kornys on gmail, twitter, facebook, etc.
"Every jumbled pile of person has a thinking part
that wonders what the part that isn't thinking
isn't thinking of"

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



Problem with hosted mode : The browser widget class could not be instantiated

2009-02-25 Thread Julie

Hello,
first sorry for my english if it is not very clear.
So, I have a problem when I want to launch a sample with the -
shell.cmd, I've got this error :

[ERROR] The browser widget class could not be instantiated
java.lang.RuntimeException: Unable to snatch field 'site' from class
org.eclipse.swt.browser.Browser
at com.google.gwt.dev.shell.LowLevel.snatchFieldObjectValue
(LowLevel.java:171)
at com.google.gwt.dev.shell.LowLevel.snatchFieldObjectValue
(LowLevel.java:180)
at
com.google.gwt.dev.shell.ie.SwtOleGlue.injectBrowserScriptExternalObject
(SwtOleGlue.java:102)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.
(BrowserWidgetIE6.java:243)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.google.gwt.dev.shell.PlatformSpecific.createBrowserWidget
(PlatformSpecific.java:59)
at com.google.gwt.dev.GWTShell.openNewBrowserWindow(GWTShell.java:
547)
at com.google.gwt.dev.GWTShell.launchStartupUrls(GWTShell.java:507)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:591)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
Caused by: java.lang.NoSuchFieldException: site
at java.lang.Class.getDeclaredField(Unknown Source)
at com.google.gwt.dev.shell.LowLevel.snatchFieldObjectValue
(LowLevel.java:159)
at com.google.gwt.dev.shell.LowLevel.snatchFieldObjectValue
(LowLevel.java:180)
at
com.google.gwt.dev.shell.ie.SwtOleGlue.injectBrowserScriptExternalObject
(SwtOleGlue.java:102)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.
(BrowserWidgetIE6.java:243)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.google.gwt.dev.shell.PlatformSpecific.createBrowserWidget
(PlatformSpecific.java:59)
at com.google.gwt.dev.GWTShell.openNewBrowserWindow(GWTShell.java:
547)
at com.google.gwt.dev.GWTShell.launchStartupUrls(GWTShell.java:507)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:591)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

Do you know where it comes?
Julie

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



Unable to load class 'com.google.gwt.sample.showcase.generator.ShowcaseGenerator'

2009-02-25 Thread Mandar

Hi,
I am new to GWT. I am facing one problem while trying to run the
showcase application given in the sample examples.
I am using GWT1.5.3 and eclipse IDE.

Unable to load class
'com.google.gwt.sample.showcase.generator.ShowcaseGenerator
'java.lang.ClassNotFoundException:com.google.gwt.sample.showcase.generator.ShowcaseGenerator

Please help.
One more thing i will like to ask,
can anyone please me tell me proper steps how to run the sample gwt
applications in host mode using eclipse.

--~--~-~--~~~---~--~~
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: json date

2009-02-25 Thread Lothar Kimmeringer

Dimitrijević Ivan schrieb:
> You can use sql99 standard (-MM-DD hh:mm:ss) to format date as
> string in php and write your parser which will convert sql99 date
> String into Date object in GWT.

If the web-application is accessed internationally I think the
format used with iCalendar (AFAIR) or XML is better:
-MM-ddTHH:mm:ssZ
Otherwise there might be confusions what 03:00:00 means, the
timezone of the server or the timezone of the client. Or you
define that all times have to be in UTC and you convert them
accordingly on server- and client-side.


Regards, Lothar

--~--~-~--~~~---~--~~
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: Unable to load class 'com.google.gwt.sample.showcase.generator.ShowcaseGenerator'

2009-02-25 Thread Mahavir Jain
Make sure that your ShowcaseGenerator class is present at
com.google.gwt.sample.showcase.generator.. If it is not present then copy
ShowcaseGenerator on required path..

To follow step-by-step developement and learning of GWT I would recommend to
go through the online tutorial of StockWatcher on following link..

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=GettingStartedCreateProject

Mahavir


On Wed, Feb 25, 2009 at 4:21 PM, Mandar  wrote:

>
> Hi,
>I am new to GWT. I am facing one problem while trying to run the
> showcase application given in the sample examples.
> I am using GWT1.5.3 and eclipse IDE.
>
> Unable to load class
> 'com.google.gwt.sample.showcase.generator.ShowcaseGenerator
>
> 'java.lang.ClassNotFoundException:com.google.gwt.sample.showcase.generator.ShowcaseGenerator
>
> Please help.
> One more thing i will like to ask,
> can anyone please me tell me proper steps how to run the sample gwt
> applications in host mode using eclipse.
>
> >
>

--~--~-~--~~~---~--~~
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: Unable to load class 'com.google.gwt.sample.showcase.generator.ShowcaseGenerator'

2009-02-25 Thread Mandar

Hey thx for the reply.
I check the path for ShowcaseGenerator class.
It is present there.But the problem is still there.
Below mentioned is an error message which i an getting

 • Loading module
'com.google.gwt.sample.showcase.Showcase'
 a) Unable to load class
'com.google.gwt.sample.showcase.generator.ShowcaseGenerator'
 b) Failure while parsing XML

 • The development shell servlet received a request for
'Showcase.html' in   module
'com.google.gwt.sample.showcase.Showcase.gwt.xml'
 a) Loading module
'com.google.gwt.sample.showcase.Showcase'
  1.Unable to load class
'com.google.gwt.sample.showcase.generator.ShowcaseGenerator'
  2.Failure while parsing XML


On Feb 25, 4:28 pm, Mahavir Jain  wrote:
> Make sure that your ShowcaseGenerator class is present at
> com.google.gwt.sample.showcase.generator.. If it is not present then copy
> ShowcaseGenerator on required path..
>
> To follow step-by-step developement and learning of GWT I would recommend to
> go through the online tutorial of StockWatcher on following link..
>
> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>
> Mahavir
>
>
>
> On Wed, Feb 25, 2009 at 4:21 PM, Mandar  wrote:
>
> > Hi,
> >    I am new to GWT. I am facing one problem while trying to run the
> > showcase application given in the sample examples.
> > I am using GWT1.5.3 and eclipse IDE.
>
> > Unable to load class
> > 'com.google.gwt.sample.showcase.generator.ShowcaseGenerator
>
> > 'java.lang.ClassNotFoundException:com.google.gwt.sample.showcase.generator.­ShowcaseGenerator
>
> > Please help.
> > One more thing i will like to ask,
> > can anyone please me tell me proper steps how to run the sample gwt
> > applications in host mode using eclipse.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Splitting application in modules

2009-02-25 Thread Tuvok

I'm compiling through the button on the hosted mode browser, I'll try
with -obf on console, thx.
Also I forgot to mention I'm using only SmartGWT widgets.
Anyway what about my doubt regarding modules?

On Feb 24, 7:57 pm, Isaac Truett  wrote:
> 2 MB of "various js" doesn't really have anything to do with GWT or
> how many modules you have.
>
> Are you quite sure that your 2 MB cache.html is compiled with -OBF
> instead of -PRETTY?
>
> On Tue, Feb 24, 2009 at 12:53 PM, Tuvok  wrote:
>
> > Hi,
> > I was not even halfway developing a web-application when I checked its
> > size with firebug and the home page takes 4 MB to download (2MB on
> > cache.html, 2MB on various js).
> > Since this is not reasonable for the common user I guess I took a
> > wrong developing pattern.
> > I think my error was to make a single index.html module, containing
> > all the app, so I'm wondering which way should I take to rebuild the
> > app.
> > I guess I should split the app in multiple modules, but how do I
> > connect them?
> > Should I assign to each module a screen portion, or perhaps should I
> > use every module as a single page and link them?
> > And how do I pass data from a module to another (history # data is
> > clearly visible and not safe)?
> > I hope you can help since I have no clue!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Define a unique policy

2009-02-25 Thread Josse

Hello,

I would like to have character smaller in all my page. How Can i
change the policy of the label, button etc... without make one by one?
--~--~-~--~~~---~--~~
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: MVC + RPC architecture

2009-02-25 Thread Adligo

Hi charles,

  I have also written and open sourced a mvc architecture (gwt_util
and gwt_util_demo) projects at;
http://www.adligo.com
It is designed specifically to be used with storage (databases, ldap
servers, files exc).  It also has a logging framework, so you can
figure out whats going on in my gwt mvc classes.
  Give the large number of gwt mvc architectures out there I would
have to say it is a good idea.   On thing it took me years to realize
(due to falling asleep in computer science 1?) is that mostly when you
hear the words re-use they pertain to re using a design (like mvc,
observers, command patters, exc) and not actual code (although that is
quite useful too).

Cheers,
Scott

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



Re: Apply CSS in editor area of RichTextArea

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

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

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

-Danny


2009/2/24 Danny Schimke 

> Hi Omer!
>
> 1. Yes I am using Windows and yes: Hosted Mode uses the installed IE.
> 2. The error occurs in compiled mode (Firefox, IE) too.
>
> I show a preview for multilingual text (english, german, french, etc.).
> It's font-family is shown in "Arial,Helvetica", but the RichTextArea is
> using the browsers font (If I am not mistaken!?). It does not look nice,
> when the editors text has a different font, than its preview...
>
> I hope I'll crack this in future ;)
>
> Thank you Omer!!!
> -Danny
>
> 2009/2/24 A Friend Of Yours 
>
>
>> > Any Idea, why the error occurs?
>>
>> No; not really!
>>
>> If you could provide more details:
>> 1. Are you having this error in Hosted Mode or Web Mode?
>> Because some javascript trick don't work in Hosted Mode so things like
>> this happen.
>
>
>>
>> 2. Hosted Mode: Are you using Windows?
>> Hosted Mode browser in windows uses Internet Explorer components to
>> render its view (not sure if it is true though). While I used this in
>> linux where Hosted Mode uses mozilla components.
>>
>> 3. Web Mode: Goes without saying; are you using Internet Explorer for
>> Web Mode?
>> As I had mentioned, I have only tested this solution on Firefox in
>> Linux.
>>
>> Hope this helps
>>
>> Omer Akhter
>>
>> Danny Schimke wrote:
>> > I need to set the CSS for RichTextArea too and tried out your idea. I've
>> got
>> > the following Error in the first line where I create the Document object
>> > using my RichTextArea:
>> >
>> > com.google.gwt.core.client.JavaScriptException: (Error): Unknown Error.
>> >  number: -2147467259
>> >  description: Unknown Error.
>> >
>> > Any Idea, why the error occurs?
>> >
>> > Thanks!
>> > -Danny
>> >
>> > 2009/2/17 A Friend Of Yours 
>> >
>> > >
>> > > Please try to maintain a single thread:
>> > >
>> > >
>> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4e1d0c2a8ba725ef
>> > >
>> > > On Feb 17, 8:10 pm, "Manish Kumar"  wrote:
>> > > > Hi All,
>> > > >
>> > > > Could I please have any idea on this( in mail below ).
>> > > >
>> > > > Regards
>> > > > Manish
>> > > >
>> > > >   - Original Message -
>> > > >   From: Manish Kumar
>> > > >   To: Google-Web-Toolkit@googlegroups.com
>> > > >   Sent: Tuesday, February 17, 2009 10:46 AM
>> > > >   Subject: Apply CSS in editor area of RichTextArea
>> > > >
>> > > >   Hi Everybody,
>> > > >
>> > > >   While working on adding RichTextArea with my project.I would like
>> to
>> > > apply css on editor area of Rich Text Area control so that I can set
>> font
>> > > behaviours ( font-family, font-weight,font-size etc ) being displayed
>> in the
>> > > rich text area editing area a bit changeable.
>> > > >
>> > > >   can anybody help me out to get rid of this issue.
>> > > >
>> > > >   Thanks
>> > > >   Manish
>> > > >
>> > >
>> >>
>>
>

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



Re: CheckBox alignment

2009-02-25 Thread Thomas Broyer


On 25 fév, 10:02, "alex.d"  wrote:
>
> > I want the text with checkbox to appear to the right instead of left.
> > How can I do it??
>
> Make your own widget - myFancyCheckbox. In it: place a horizontalPanel
> with a Label and an empty Checkbox. Write the necessary methods like
> setText() etc.

Surely you meant to write SimpleCheckBox instead of "empty
CheckBox" ? ;-)

A more hackish but easier way:
   cb.getElement().appendChild(cb.getElement().getFirstChildElement
());

--~--~-~--~~~---~--~~
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: CheckBox alignment

2009-02-25 Thread alex.d



On 25 Feb., 15:02, Thomas Broyer  wrote:
> On 25 fév, 10:02, "alex.d"  wrote:
>
>
>
> > > I want the text with checkbox to appear to the right instead of left.
> > > How can I do it??
>
> > Make your own widget - myFancyCheckbox. In it: place a horizontalPanel
> > with a Label and an empty Checkbox. Write the necessary methods like
> > setText() etc.
>
> Surely you meant to write SimpleCheckBox instead of "empty
> CheckBox" ? ;-)
:-) I meant "empty" like with-no-text ()

> A more hackish but easier way:
>    cb.getElement().appendChild(cb.getElement().getFirstChildElement());
nice... haven't thought abought that. Then i'll create myFancyCheckbox-
class extending GWT-Checkbox and applying your trick.
--~--~-~--~~~---~--~~
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: Splitting application in modules

2009-02-25 Thread El Mentecato Mayor

You just answered your question; it is because you are using SmartGWT
widgets (they add up to your size considerably).

Separating your application into modules I don't think will help much
to reduce the size.  They will only help to organize the code if
that's what you want and have too many classes into the one project/
module currently being used.

Also, I think by default the compile button on the hosted mode browser
will use OBF.

The only thing I can recommend to alleviate your problem is to use the
LazyPanel approach (load widgets only on-demand), but that will only
help to reduce the loading time of your application, not exactly the
same as the download time.  To reduce the size, you either get rid of
SmartGWT, or reconsider the number of widgets being used (optimize the
client code as much as you can).

On Feb 25, 8:08 am, Tuvok  wrote:
> I'm compiling through the button on the hosted mode browser, I'll try
> with -obf on console, thx.
> Also I forgot to mention I'm using only SmartGWT widgets.
> Anyway what about my doubt regarding modules?
>
> On Feb 24, 7:57 pm, Isaac Truett  wrote:
>
> > 2 MB of "various js" doesn't really have anything to do with GWT or
> > how many modules you have.
>
> > Are you quite sure that your 2 MB cache.html is compiled with -OBF
> > instead of -PRETTY?
>
> > On Tue, Feb 24, 2009 at 12:53 PM, Tuvok  wrote:
>
> > > Hi,
> > > I was not even halfway developing a web-application when I checked its
> > > size with firebug and the home page takes 4 MB to download (2MB on
> > > cache.html, 2MB on various js).
> > > Since this is not reasonable for the common user I guess I took a
> > > wrong developing pattern.
> > > I think my error was to make a single index.html module, containing
> > > all the app, so I'm wondering which way should I take to rebuild the
> > > app.
> > > I guess I should split the app in multiple modules, but how do I
> > > connect them?
> > > Should I assign to each module a screen portion, or perhaps should I
> > > use every module as a single page and link them?
> > > And how do I pass data from a module to another (history # data is
> > > clearly visible and not safe)?
> > > I hope you can help since I have no clue!
--~--~-~--~~~---~--~~
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: Memory Leak with IE7

2009-02-25 Thread koalina

hi all,
I've tried as suggested by jason with this semplified piece of code:
public class MainEntryPoint implements EntryPoint{

private Marker marker;
private MapWidget map;

public MainEntryPoint() {
}

/**
 * The entry point method, called automatically by loading a
module
 * that declares an implementing class as an entry-point
 */
public void onModuleLoad() {





map = new MapWidget(LatLng.newInstance(38.1890087,
15.5648162), 12);

map.checkResizeAndCenter();
RootPanel.get().add(map);
Timer t = new Timer(){
@Override
public void run() {
for (int i = 0; i < 10; i++)
{
map.clearOverlays();
map.addOverlay(createMarker());
}
}
};
t.scheduleRepeating(3000);

//180209Miki:per prima cosa devo caricare le api
*dinamicamente*
//...poi tutto il resto di conseguenza

//lookupKey(Window.Location.getHost());


}
public Marker createMarker()
{
marker = null;
marker = new Marker(LatLng.newInstance(new Double(15), new
Double(38)));
return marker;



}
}

I would expect memory doesn't increase.. it doesn't
clearOverlays does not remove references with ie7
any workaround...?
please help, thx,
Michela

On 24 Feb, 20:22, koalina  wrote:
> commenting the addOverlay, memory usage is costant...
> that's why i think there's something wrong with the clearOverlays..
> thx for help,
> michela
>
> On Feb 24, 5:47 pm, Eric Ayers  wrote:
>
> > Yeah, you are right.
>
> > One thing you could try is to comment out the 'addOverlay()' call and
> > measure your memory again.  You won't see anything, but it will tell
> > you if this is the problem.
>
> > On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>
> > > but i call the clerOverlays each time i run the timer.. at each loop
> > > the markers should be deallocated... aren't they?
> > > Michela
>
> > > On 24 Feb, 17:31, Eric Ayers  wrote:
> > >> Think about what your code is doing here.
>
> > >> You are allocating marker objects and adding them to the map every
> > >> time your timer expires.
> > >> The map will track these things for you until you call 
> > >> map.removeOverlay().
>
> > >> My guess is that you have hundreds of markers added to the map, all
> > >> stacked on top of each other.
>
> > >>http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html
>
> > >> On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>
> > >> > Hi all, I've found the cause of the memory leak isolating by some
> > >> > piece of code. It seems not to be caused by gwt-ext but when I make
> > >> > the map.addOverlay(createMarker(point,  myObject));
>
> > >> > where createMarker is:
>
> > >> > Icon icon = Icon.newInstance(baseIcon);
>
> > >> >        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
> > >> > (nave)+"_ship.png");
>
> > >> >        GWT.log("Carico immagine "+icon.getImageURL(), null);
> > >> >        LabeledMarkerOptions options = LabeledMarkerOptions.newInstance
> > >> > ();
> > >> >        options.setTitle(nave.getNomeNave());
> > >> >        options.setIcon(icon);
>
> > >> >        options.setLabelText(String.valueOf(nave.getIdNave()));
>
> > >> >        options.setLabelClass("labeledMarker");
>
> > >> >        //200209Miki: se l'id nave è lungo una solo cifra va bene
> > >> > così...
> > >> >        if((Integer.toString(nave.getIdNave())).length()==1)
> > >> >            options.setLabelOffset(Size.newInstance(1, -26));
> > >> >        //altrimenti devo shiftare la label di due posti a sinistra...
> > >> >        else
> > >> >            options.setLabelOffset(Size.newInstance(-2, -26));
> > >> > //
>
> > >> >        LabeledMarker marker = new LabeledMarker(point, options);
>
> > >> >        ((Marker)marker).addMarkerClickHandler(new MarkerClickHandler
> > >> > () {
>
> > >> >            public void onClick(MarkerClickEvent event) {
> > >> >                //050209Miki: gestisco qui il popup informativo
> > >> >                InfoWindow info = map.getInfoWindow();
> > >> >                info.open(event.getSender(),
>
> > >> >                new InfoWindowContent(
> > >> >                " > >> > " +
> > >> >                "class='info-window'>" +
> > >> >                //"" +
> > >> >                "Nome nave: "+nave.getNomeNave()+"" +
> > >> >                "Localita' Partenza: " +nave.getLocalitaPartenza()
> > >> > +"" +
> > >> >                "Localita' Arrivo: "+nave.getLocalitaPartenza()+" > >> >>" //+
> > >> >                //"Merci Pericolose a Bordo: " +
> > >> > nave.getMerciPericolose()+""
> > >> >                ));
>
> > >> >            }
>
> > >> >        });
>
> > >> >        return marker;
>
> > >> > It' squite strange but now I'm sure the issue is with this piece of
> > >> > code..
> > >> > is     map.clearOverlays(); sufficient to deallocate the previous
> > >> > markers?
> >

Re: MVC + RPC architecture

2009-02-25 Thread gregor

Hi Reza,

I think I made an unfortunate choice of words with "dogma". I do not
mean to diss MVC, what I really meant to convey was that there is an
awfull lot more documentation around about MVC than there is about
Model Delegate and the the use of the Observer and Mediator patterns
in this context. You are quite right IMO that newbies should learn and
apply well established patterns, but my point is that the MVC pattern
has so much exposure that it is possibly unbalanced.

I think part of the reason relates to your comment:

"And finally, I don't have anything against ModelDelegate, but I think
you wouldn't use it in a jsp web site by putting all controllers code
inside jsp. (which is possible and most newbies start coding this way)
You definitely use a well established MVC framework."

You are undeniably right about this: you should definitely use a MVC
framework like struts for a JSP based application. The thing is,
though, that JSP based applications are a perfect fit for the MVC
pattern since each request from a view needs to be processed and
redirected to the next view. A struts Action class, i.e. a controller,
is perfect for this. MVC got a huge boost to its profile through
struts and JSP Model 2.

But a GWT AJAX application is a different animal. It is technically a
"thin client" since it runs in a browser with no native executables or
libraries required, but functionally it has a lot more in common with
a traditional "thick client" - complex UI, no paging, asynchronous
server calls, session state shifted from server to client etc. In a
Java thick client, say Swing, you typically set a model graph directly
on a widget, and the widget binds itself to it and controls user
events and how they affect the model.

In GWT it is similar to this, because events are propagated from the
browser via the widgets themselves, so if you have separate
controllers that need to know about events (which they do) it can
become complicated and messy. This is exacerbated by the asynchronous
RPC mechanism as Charles pointed out in the OP. If a widget itself is
not coordinating the asynch call, but calls a method on a separate
controller, you need another callback mechanism to relay the results
back to the widget.

There are situations where doing this is necessary. My favourite
example is a work flow application where a work flow process may have
many different views all of which are based on the same model graph
for the process. In this case a MVC decomposition some thing like this
makes sense:

 view
  / \
   controller \
  /\  \
 /   \ \
RPC\\
   \ ---  model

IMO in many, if not most, situations that is over-engineering.

However none of this answers the OP question really, nor does it
answer your point that newbies should follow good practice based on
known sound patterns. If not MVC then what exactly? To be sure the
answer is not that well documented. The current GWT event system which
is based pretty much on the Observer pattern. it works well in the
simple case but has shortcomings when you scale in terms of
complexity. It can get messy with dozens of different listener
interfaces etc. I think the new event system coming in with 1.6 will
make a big difference to this.

My own response has been to experiment with the Mediator pattern as
defined in the GoF book. I am pleased with the results so far. The GoF
book actually uses a set of collaborating widgets as the example for
Mediator. I use a mediator to coordinate events between colleague
widgets (usually Composites) around a specific functional area. The
Mediator only handles event subscription, publishing and routing. The
Composites themselves are responsible for deciding what to do in
response to a particular event. The main shortcoming of this approach
I have found so far is if an event requires several Composites to
refresh their data at once since this implies multiple concurrent RPC
calls when one would be better. I'm still thinking about how to best
deal with that in general terms.

Anyway, I have nothing against MVC, only that it is not IMO an
automatic or universal best choice for a GWT client. Only sometimes.

regards
gregor






On Feb 25, 1:35 pm, Adligo  wrote:
> Hi charles,
>
>   I have also written and open sourced a mvc architecture (gwt_util
> and gwt_util_demo) projects at;http://www.adligo.com
> It is designed specifically to be used with storage (databases, ldap
> servers, files exc).  It also has a logging framework, so you can
> figure out whats going on in my gwt mvc classes.
>   Give the large number of gwt mvc architectures out there I would
> have to say it is a good idea.   On thing it took me years to realize
> (due to falling asleep in computer science 1?) is that mostly when you
> hear the words re-use they pertain to re using a design (like mvc,
> observers, comm

Re: Putting widget on top of gchart

2009-02-25 Thread John Gunther

Thanks for reporting back, glad that helped.

I'm not aware of an easier or more element-efficient way to do what
you are doing than those I proposed.

Thanks for the suggestion re: direct way to change individual point
styles, etc. without adding a new curve. No way to do that with
current product, but, in light of your example, a great idea for a
future feature addition. I'm currently planning GChart 2.5 and if
possible will try to work it into that release. Please consider adding
it to the GChart issue tracker.

Will also try to improve how GChart reduces model coordinates into
pixels, in a future release.

Incidentally, it's best to post future very GChart-specific questions
directly to the GChart issue tracker (there are only 21 issues to
date, so to keep things a bit simpler, it doubles as GChart's forum,
too). This general GWT forum is best for GChart-related questions
where you need to draw responses from non-GChart users, too (comparing
alt charting approaches in GWT, for example).

http://code.google.com/p/gchart/issues/list

John C. Gunther

On Feb 24, 2:11 pm, Paul Wang  wrote:
> Thanks for the workaround.  Changing symbol to VBAR_BASELINE_CENTER
> and then setBaseline makes the semi-transparent images work now.  I'll
> use this method for the short term.
>
> It certainly would be simpler if I didn't have to create another curve
> since it does add to the number of rendered elements on the web page.
> Is it possible to change the symbol at individual points?  Originally
> I wanted to dim the color of certain points but couldn't find a method
> to do that.  Is there an example for me to look at?
>
> I also looked at annotation but unfortunately didn't seem to be able
> to satisfy my requirement at this time.  The functionality does seem
> really useful though.
>
> Thanks.
> --
> Paul Wang
>
> On Feb 20, 4:37 pm, John Gunther  wrote:
>
> > I played around with GChartExample21.java (available in the chart
> > gallery and linked to in my previous post) a bit, and was able to
> > produce a 1px overlap between adjacent bars that I think is consistent
> > with the problem you reported.
>
> > I also found that I could eliminate this 1px adjacent bar overlap by
> > changing the following lines inGChart.java:
>
> >          VBarBottom(int wm, int hm) {
> >              super(wm, hm,0.5,0.5,0.5,0.5);
> >          }
>
> > To instead read:
>
> >          VBarBottom(int wm, int hm) {
> >              super(wm, hm,0.0,0.0,0.5,0.5);
> >          }
>
> > The 0.5s adds a half pixel widening to the left and right edges of the
> > symbol. This is intended to make symbol edges align better with the
> > gridlines, and is helpful in some other cases, too, but this half
> > pixel padding seems to be causing the 1px overlap, and that appears to
> > be preventing you from doing what you want to do.
>
> > The easiest way to eliminate the 1px overlap that I found (without
> > changing theGChart.java source code) was to switch from
> > SymbolType.VBAR_SOUTH to SymbolType.VBAR_BASELINE_CENTER.  This works
> > because the VBAR_BASELINE_CENTER symbol type's constructor does not
> > have the 1/2 pixel padding (it already has 0,0 instead of 0.5, 0.5).
>
> > To make the VBAR_BASELINE_CENTER symbol type in other respects behave
> > the same as VBAR_SOUTH, you'll have to set the baseline of the curve
> > so that it equals the minimum value displayed on the Y axis, for
> > example, via something like:
>
> >   getCurve().getSymbol().setBaseline(theMinValueShownOnTheYAxis);
>
> > Will try to correct the root cause (not sure I fully understand that
> > yet, BTW) in a future release (maybe via a feature that let's you
> > explicitly control if the 1/2 px padding is present? If you have
> > suggestions, I'm interested to hear them). Submit this problem to 
> > theGChartissue tracker if you don't want to let me forget it.
>
> > Thanks for taking the time to create a test and report the problem
> > that you found (I never considered this particular usage scenario of
> > translucent overlapping bars before your post).
>
> > Getting back to your original problem, it might be simpler to create
> > 20 1-point curves and just change the background color or other
> > features of each symbol/point/curve to represent the enabled or
> > disabled state, rather than the two-curve strategy I suggested earlier
> > (this is almost certainly a simple/better approach if you only have 20
> > bars on the chart, and you are not planning to use a chart key).
>
> > Finally, the simplest way to indicate that "some of these bars are not
> > like the others" is via setAnnotationText or setAnnotationWidget,
> > especially if you are flexible about the way that such differences get
> > indicated (e.g indicating such differences via a label, a small icon
> > at the center of each bar, etc.)
>
> > John
>
> > On Feb 17, 2:37 pm, Paul Wang  wrote:
>
> > > Thanks for the idea.  I tried it out and it seems like it would work
> > > except that the bars seems be overlap 

Re: strange behavior for float numbers

2009-02-25 Thread Alan Hadsell



On Feb 24, 1:52 pm, "tony.p.."  wrote:

> This seems like a bug in JS, more than just the way it handles float.
> Because I'm not doing any calculations on the GWT (JS) side, I'm just
> printing what comes from the server. So if 15.2 if printed as
> 15.20, that would be ok, but to be printed as
> 15.19809265136 is really weired. Am I right or am I missing
> something?

You're missing something.  In JavaScript there is no such number as
15.2.  JavaScript uses IEEE-754 standard floating-point notation,
which can only represent numbers of the form (i times 2 ** j) where **
represents exponentiation, and i and j are integers.  See
http://babbage.cs.qc.edu/courses/cs341/IEEE-754references.html for
details.  The effect is similar to trying to represent 1/3 with an
exact decimal representation; you can come very close but you can't
get it exactly.

If you want to represent exact decimal numbers in JavaScript you have
two choices:  Use strings, and forego doing arithmetic on them, or use
rational numbers, where all numbers are internally in the form (i/j)
with i and j integers.

One very useful subset of rational notation is scaled decimal, where j
is a constant power of 10 depending on the maximum precision you want
to retain.  So if you're maintaining 4 digits after the decimal place,
j is 1, and 15.2 is represented as 152000/1.  The denominator
(also called the scale factor) can be implied in this case (i.e. you
don't need to store it with each number; think of it as a static final
value).

This notation makes it easy to add and subtract; just add or subtract
the numerators.  Multiplication is easy if the numbers are small --
multiply the numerators and then divide by the scale factor.  Division
is relatively easy; multiply one numerator by the scale factor and
then divide by the other numerator.  In both multiplication and
division you need to think about rounding, and also about overflow if
any of the intermediate results might exceed 15 digits.

--~--~-~--~~~---~--~~
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: Widget overlap

2009-02-25 Thread Sean

What do you mean, "see" when a widget overlaps other widget?

If you are implementing Drag and Drop yourself using mouse listeners,
then you can as the mouse moves check it against all the other
widget's bounding box on the AbsolutePanel. You are just looking for
the intersection, see if it's true. Lots of ands and ors for each side
of the widgets, but it can be done. I believe the book GWT in action
(Great book btw) has a whole chapter on implementing that.

On Feb 24, 4:49 am, danutz  wrote:
> Hello!
> Is there any posibility to see when a widget overlaps other widget
> when i'm making the drag and drop?
--~--~-~--~~~---~--~~
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: Drang/drop files to GWT app - any progress?

2009-02-25 Thread Rakesh

GWT, as mars said, is based on js and hence inherit all of its
restrictions.
You should probably request the Gears team for this feature. Gears is
a browser plugin.
If the gears team has enough user request and a good use case, they
might add this feature to the plugin.

Rakesh Wagh

On Feb 24, 4:16 am, dduck  wrote:
> Hi,
>
> I have searched the archives and the web, and all I could find was
>
> 1) Drag/drop projects that were only related to widgets.
> 2) Some discussions, all at least a year old, concluding that it was
> either hard and non-standards compliant, or impossible.
>
> Any progress?
>
> Regards
> Anders
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



how do i make image blink? [need HELP]

2009-02-25 Thread ytbryan

hi all,

i am thinking of making my logo blink or maybe do something like this
http://www.imafish.co.uk/articles/post/articles/130/52-ways-to-speed-up-os-x/


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



How to retrieve data in GWT from getImageData

2009-02-25 Thread Kevin Tarn
I have a canvas widget. I want to use JSNI to get canvas bitmap by
getImageData method. Is there a way to return getImageData output to Java
byte[]?

Kevin

--~--~-~--~~~---~--~~
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: DateTimeFormat / DateRecord bug

2009-02-25 Thread Arthur Kalmenson

Hmm, this looks like a bug. I'd suggest posting it as an issue:
http://code.google.com/p/google-web-toolkit/issues/list

--
Arthur Kalmenson



On Tue, Feb 24, 2009 at 5:04 PM, wolverine  wrote:
>
> DateTimeFormat.getFormat(EEE,d MMM  HH:mm:ss Z).parse("Mon, 23 Feb
> 2009 23:48:59 -0800");
>
> Will produce IllegalArgumentException().
> It crashed in DateRecord.calcDate() when checking day of week.
>
> >
>

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



Re: how do i make image blink? [need HELP]

2009-02-25 Thread Tuvok

Blinking can just be an animated gif, but nobody likes blinking stuff.
To make it change on mouse passage  just use the proper mouse handler.
final Image im = new Image();
im.setUrl("plain_logo.gif");
im.addMouseListener(new MouseListener() {
public void onMouseDown(Widget sender, int x, int y) {}

public void onMouseEnter(Widget sender) {
im.setUrl("modified_logo.gif");
}
public void onMouseLeave(Widget sender) {
im.setUrl("plain_logo.gif");
}
public void onMouseMove(Widget sender, int x, int y) {}
public void onMouseUp(Widget sender, int x, int y) {}

});

On Feb 25, 5:20 pm, ytbryan  wrote:
> hi all,
>
> i am thinking of making my logo blink or maybe do something like 
> thishttp://www.imafish.co.uk/articles/post/articles/130/52-ways-to-speed-...
>
> can someone advise me what to do ?
--~--~-~--~~~---~--~~
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: Official word on Safari 4 public beta support

2009-02-25 Thread Arthur Kalmenson

Hosted mode shouldn't really be effected by the new Safari (although I
heard it updates some of the UI libraries, so hosted mode might _look_
different since it seems to affect Web Kit Nightly).

--
Arthur Kalmenson



On Tue, Feb 24, 2009 at 7:21 PM, macagain  wrote:
>
> Any news on whether it's supposed to work/not work, issues etc.?  It
> runs my gwt apps great on my windoze machines... fast!  faster than
> chrome! (even on my 4 1/2 year old laptop which just about gags on
> ie7)
>
> However, I've not upgraded my mac dev machine yet, not know how hosted
> mode will behave.  If there are any brave souls who have tried it,
> feedback much appreciated.
> >
>

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



Re: call a method at runtime

2009-02-25 Thread Arthur Kalmenson

No, reflections are not support by GWT on the client side. If you want
to do reflection work it'll have to happen in a Generator during
compile time.

--
Arthur Kalmenson



On Tue, Feb 24, 2009 at 11:55 PM, zujee  wrote:
>
> Thanks Kamal for your quick response. But I think reflection wont
> support in GWT Client package,rgt?
>
>
> On Feb 25, 9:47 am, Kamal Chandana Mettananda 
> wrote:
>> You can use Java reflection API for that.
>>
>> Following article will help you.
>>
>> http://java.sun.com/docs/books/tutorial/reflect/member/methodInvocati...
>>
>> ---
>> Kamal Mettanandahttp://lkamal.blogspot.com
>>
>>
>>
>> On Wed, Feb 25, 2009 at 10:12 AM, zujee  wrote:
>>
>> > How can i call a method dynamically at runtime?
>> > for eg:
>>
>> > private string getThisMethod()
>> > {
>> >  return "success";
>> > }
>>
>> > public callGetThisMethod(String ThisMethod)
>> > {
>> >     String  ="get"+ThisMethod;
>>
>> >    //W
>>
>> > }- Hide quoted text -
>>
>> - Show quoted text -
> >
>

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



How to retrieve data as byte[] in GWT from getImageData

2009-02-25 Thread Kevin Tarn

I have a canvas widget. I want to use JSNI to get canvas bitmap by
getImageData method. Is there a way to return getImageData output to
Java byte[]?

Kevin
--~--~-~--~~~---~--~~
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: Spring Security and GWT : how I've done

2009-02-25 Thread Felipe Cypriano
I'm thinking in using Grails (JSecurity Plugin, which "is" Spring Security)
with GWT as the interface. Have you tried this?

I haven't tested this yet, but the session expiration is a issue using GWT?
For example, the timeout for a session is 30 minutes, everytime GWT does an
"ajax" request the timeout counter is restarted or every 30 minutes with the
user didn't do a refresh (old school request) the session will expires?


Thanks,

---
Felipe Marin Cypriano
Vitória - ES
http://www.linkedin.com/in/felipecypriano


On Wed, Feb 25, 2009 at 6:14 AM, David  wrote:

>
> I've added additional information (examples mainly) and will upload a
> jar ASAP in order to make it easy to test.
>
> And do not hesitate to give me feedback.
>
> David
>
> On Feb 22, 4:13 pm, jossey  wrote:
> > Hi David,
> > I really appreciate you sharing this.
> > Thanks.
> >
> > On Feb 19, 3:03 pm, David  wrote:
> >
> > > Hi everyone,
> >
> > > This is my second message promoting something I've put in my "GWT test
> > > area" :) I hope you'll find it useful : It may help people to
> > > integrate Spring Security with GWT applications in a clean (that's my
> > > non-objective POV ! :)) way.
> >
> > > Here is a small introduction on how it works ; a more detailed
> > > description is available on code.google.com. See the link at the end
> > > of this message.
> >
> > > First thing : it uses GWT-SL to use simple Spring beans to serve RPC
> > > calls. I've extended the original GWTHandler in order to provide a
> > > convenient way to manage Security exceptions. I've also provided a
> > > specific ExceptionTranslationFilter that can deal with security
> > > exception too.
> >
> > > With these two parts, people can handle both URL filtering and AOP
> > > strategies.
> >
> > > As usual, feel free to post your comments, I'll really appreciate your
> > > feedback.
> >
> > > Here is the URL of the Google Code's project :
> http://code.google.com/p/gwt-incubator-lib
> >
> > > David
> >
> >
> >
>

--~--~-~--~~~---~--~~
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 Stackpanel selected issue

2009-02-25 Thread ProtoLD

I cannot seem to set the CSS of the selected stack panel without
having it get overwritten by the unselected CSS.  If I leave the
unselected alone, the selected stack panel will correctly overwrite,
but if I define my own, it will not.  Is this a bug, or some "working
as intended" thing?

Here I set my CSS:

.gwt-StackPanel .gwt-StackPanelItem-selected {
background: url('images/toggle-o.gif');
}

.gwt-StackPanel .gwt-StackPanelItem {
font-weight: bold;
font-size: 8pt;
width: 400px;
/*background: url('images/toggle-c.gif');*/
background-color: #EEE;
background-position: top right;
background-repeat: no-repeat;
}

Unfortunately, my selected panel is overwritten by the first panel's
CSS somehow.  Any help?  Is this a bug?  If I leave the ".gwt-
StackPanel .gwt-StackPanelItem" alone, it uses the GWT css and then
will inherit my selected CSS correctly, but only then.
--~--~-~--~~~---~--~~
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: Splitting application in modules

2009-02-25 Thread Arthur Kalmenson

Yeah, I think one of the main problems you'll run into when using
SmartGWT. The GWT compiler won't really be able to work it's magic to
its full extent because SmartGWT is just JSNI bindings of the
SmartClient JS library. Because of that, AFAIK, GWT can't really do
its dead code removal (removing code that's not being used) and making
the resulting JS as small as possible.

--
Arthur Kalmenson



On Wed, Feb 25, 2009 at 9:47 AM, El Mentecato Mayor
 wrote:
>
> You just answered your question; it is because you are using SmartGWT
> widgets (they add up to your size considerably).
>
> Separating your application into modules I don't think will help much
> to reduce the size.  They will only help to organize the code if
> that's what you want and have too many classes into the one project/
> module currently being used.
>
> Also, I think by default the compile button on the hosted mode browser
> will use OBF.
>
> The only thing I can recommend to alleviate your problem is to use the
> LazyPanel approach (load widgets only on-demand), but that will only
> help to reduce the loading time of your application, not exactly the
> same as the download time.  To reduce the size, you either get rid of
> SmartGWT, or reconsider the number of widgets being used (optimize the
> client code as much as you can).
>
> On Feb 25, 8:08 am, Tuvok  wrote:
>> I'm compiling through the button on the hosted mode browser, I'll try
>> with -obf on console, thx.
>> Also I forgot to mention I'm using only SmartGWT widgets.
>> Anyway what about my doubt regarding modules?
>>
>> On Feb 24, 7:57 pm, Isaac Truett  wrote:
>>
>> > 2 MB of "various js" doesn't really have anything to do with GWT or
>> > how many modules you have.
>>
>> > Are you quite sure that your 2 MB cache.html is compiled with -OBF
>> > instead of -PRETTY?
>>
>> > On Tue, Feb 24, 2009 at 12:53 PM, Tuvok  wrote:
>>
>> > > Hi,
>> > > I was not even halfway developing a web-application when I checked its
>> > > size with firebug and the home page takes 4 MB to download (2MB on
>> > > cache.html, 2MB on various js).
>> > > Since this is not reasonable for the common user I guess I took a
>> > > wrong developing pattern.
>> > > I think my error was to make a single index.html module, containing
>> > > all the app, so I'm wondering which way should I take to rebuild the
>> > > app.
>> > > I guess I should split the app in multiple modules, but how do I
>> > > connect them?
>> > > Should I assign to each module a screen portion, or perhaps should I
>> > > use every module as a single page and link them?
>> > > And how do I pass data from a module to another (history # data is
>> > > clearly visible and not safe)?
>> > > I hope you can help since I have no clue!
> >
>

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



Browser resize issues

2009-02-25 Thread Steve Anthony

Posting for a colleague (cc'd). Suggestions on how to resolve welcome.

Software’s used: GWT -1.5 and GWT-EXT -2.5


Browser resizing issue: We have a Grid Panel which displays the list
of rows in between the header and footer of an application. Horizontal
Scroll bar is not displayed in the grid panel when the user reduces
the size of the browser but it is working fine in the examples
provided in gwt-ext website. We feel that it is the problem with the
style sheets.  Scroll bars are displayed if we remove the header and
footer from the jsp page when the browser is resized.

Issues with Resolutions: Complete UI will not be displayed if we watch
the UI in 14’’ laptop.

Issues with Browser cache: Old changes are displayed even after the
new changes are deployed in the server. User has to remove the browser
cache in order to see the new changes in the UI.

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



Know when the site is being viewed by hand held

2009-02-25 Thread Sean

I was wondering how certain sites, ESPN.com for example know to go to
the hand helds version of the site (Smaller, more compact, less
pictures) when viewing it on the iPhone for example.

I'd like to take a stab at making one, but I would like to know how to
detect and then redirect the browser to the hand held site?

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



Re: Memory Leak with IE7

2009-02-25 Thread Eric Ayers

I've been able to reproduce a leak in pure JavaScript without any GWT.
 This issue is described in the Maps API issue tracker

http://code.google.com/p/gmaps-api-issues/issues/detail?id=945

I attached some sample JavaScript for creating a pool of markers
instead of removing them from the map.

-Eric.

On Wed, Feb 25, 2009 at 9:48 AM, koalina  wrote:
>
> hi all,
> I've tried as suggested by jason with this semplified piece of code:
> public class MainEntryPoint implements EntryPoint{
>
>    private Marker marker;
>    private MapWidget map;
>
>    public MainEntryPoint() {
>    }
>
>    /**
>     * The entry point method, called automatically by loading a
> module
>     * that declares an implementing class as an entry-point
>     */
>    public void onModuleLoad() {
>
>
>
>
>
>        map = new MapWidget(LatLng.newInstance(38.1890087,
> 15.5648162), 12);
>
>        map.checkResizeAndCenter();
>        RootPanel.get().add(map);
>        Timer t = new Timer(){
>           �...@override
>            public void run() {
>                for (int i = 0; i < 10; i++)
>                {
>                    map.clearOverlays();
>                    map.addOverlay(createMarker());
>                }
>            }
>        };
>        t.scheduleRepeating(3000);
>
>        //180209Miki:per prima cosa devo caricare le api
> *dinamicamente*
>        //...poi tutto il resto di conseguenza
>
>        //lookupKey(Window.Location.getHost());
>
>
>    }
>    public Marker createMarker()
>    {
>        marker = null;
>        marker = new Marker(LatLng.newInstance(new Double(15), new
> Double(38)));
>        return marker;
>
>
>
>    }
> }
>
> I would expect memory doesn't increase.. it doesn't
> clearOverlays does not remove references with ie7
> any workaround...?
> please help, thx,
> Michela
>
> On 24 Feb, 20:22, koalina  wrote:
>> commenting the addOverlay, memory usage is costant...
>> that's why i think there's something wrong with the clearOverlays..
>> thx for help,
>> michela
>>
>> On Feb 24, 5:47 pm, Eric Ayers  wrote:
>>
>> > Yeah, you are right.
>>
>> > One thing you could try is to comment out the 'addOverlay()' call and
>> > measure your memory again.  You won't see anything, but it will tell
>> > you if this is the problem.
>>
>> > On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>>
>> > > but i call the clerOverlays each time i run the timer.. at each loop
>> > > the markers should be deallocated... aren't they?
>> > > Michela
>>
>> > > On 24 Feb, 17:31, Eric Ayers  wrote:
>> > >> Think about what your code is doing here.
>>
>> > >> You are allocating marker objects and adding them to the map every
>> > >> time your timer expires.
>> > >> The map will track these things for you until you call 
>> > >> map.removeOverlay().
>>
>> > >> My guess is that you have hundreds of markers added to the map, all
>> > >> stacked on top of each other.
>>
>> > >>http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html
>>
>> > >> On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>>
>> > >> > Hi all, I've found the cause of the memory leak isolating by some
>> > >> > piece of code. It seems not to be caused by gwt-ext but when I make
>> > >> > the map.addOverlay(createMarker(point,  myObject));
>>
>> > >> > where createMarker is:
>>
>> > >> > Icon icon = Icon.newInstance(baseIcon);
>>
>> > >> >        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
>> > >> > (nave)+"_ship.png");
>>
>> > >> >        GWT.log("Carico immagine "+icon.getImageURL(), null);
>> > >> >        LabeledMarkerOptions options = LabeledMarkerOptions.newInstance
>> > >> > ();
>> > >> >        options.setTitle(nave.getNomeNave());
>> > >> >        options.setIcon(icon);
>>
>> > >> >        options.setLabelText(String.valueOf(nave.getIdNave()));
>>
>> > >> >        options.setLabelClass("labeledMarker");
>>
>> > >> >        //200209Miki: se l'id nave è lungo una solo cifra va bene
>> > >> > così...
>> > >> >        if((Integer.toString(nave.getIdNave())).length()==1)
>> > >> >            options.setLabelOffset(Size.newInstance(1, -26));
>> > >> >        //altrimenti devo shiftare la label di due posti a sinistra...
>> > >> >        else
>> > >> >            options.setLabelOffset(Size.newInstance(-2, -26));
>> > >> > //
>>
>> > >> >        LabeledMarker marker = new LabeledMarker(point, options);
>>
>> > >> >        ((Marker)marker).addMarkerClickHandler(new MarkerClickHandler
>> > >> > () {
>>
>> > >> >            public void onClick(MarkerClickEvent event) {
>> > >> >                //050209Miki: gestisco qui il popup informativo
>> > >> >                InfoWindow info = map.getInfoWindow();
>> > >> >                info.open(event.getSender(),
>>
>> > >> >                new InfoWindowContent(
>> > >> >                "> > >> > " +
>> > >> >                "class='info-window'>" +
>> > >> >                //"" +
>> > >> >                "Nome nave: "+nave.getNomeNave()+"" +
>> > >> >                "Localita' Partenza: " +nave

Re: Drang/drop files to GWT app - any progress?

2009-02-25 Thread Thomas Broyer


On 24 fév, 11:16, dduck  wrote:
>
> I have searched the archives and the web, and all I could find was
>
> 1) Drag/drop projects that were only related to widgets.
> 2) Some discussions, all at least a year old, concluding that it was
> either hard and non-standards compliant, or impossible.
>
> Any progress?

Now that Yahoo! BrowserPlus is publicly released and unrestricted, I
guess you could wrap it's DragAndDrop and FileAccess or Uploader
services with JSNI.

http://browserplus.yahoo.com/developer/services/?s=DragAndDrop
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Integrating GWT and Hibernate without Gilead?

2009-02-25 Thread hezjing
Hi
I'm tried Gilead, and it works great when integrating GWT and Hibernate.

I also read from the forum that we can integrate GWT and Hibernate without
Gilead (and it is faster?).
I'm wondering, how should we handle the lazy loading without using library
like Gilead?


I'm still googling for the example of GWT and Hibernate integration without
Gilead :-(


-- 

Hez

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



How to encode a query param from the client

2009-02-25 Thread Juan

Hi,

I'm trying to encode a query param in the client to escape the invalid
parameters (white spaces, etc). URL from GWT isn't useful for this and
I didn't find an alternative.

What are you using for this ?

Thanks in advance,
Juan


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



Re: How to encode a query param from the client

2009-02-25 Thread rudolf michael
Hello,
Try this code, it is working for me.
String url = "param1=val1¶m2=val2";
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
URL.encode(url);

actually you just need to use URL.encode() whenever you wanna send a http
GET request.

regards,
ruds

On Wed, Feb 25, 2009 at 7:28 PM, Juan  wrote:

>
> Hi,
>
> I'm trying to encode a query param in the client to escape the invalid
> parameters (white spaces, etc). URL from GWT isn't useful for this and
> I didn't find an alternative.
>
> What are you using for this ?
>
> Thanks in advance,
> Juan
>
>
> >
>

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



Re: GWT Stackpanel selected issue

2009-02-25 Thread Isaac Truett

Both of those rules have the same "weight" so when an element matches
both, the last one takes precedence. I believe you will get the
desired result by reversing the order of the two rules.


On Wed, Feb 25, 2009 at 11:46 AM, ProtoLD  wrote:
>
> I cannot seem to set the CSS of the selected stack panel without
> having it get overwritten by the unselected CSS.  If I leave the
> unselected alone, the selected stack panel will correctly overwrite,
> but if I define my own, it will not.  Is this a bug, or some "working
> as intended" thing?
>
> Here I set my CSS:
>
> .gwt-StackPanel .gwt-StackPanelItem-selected {
>        background: url('images/toggle-o.gif');
> }
>
> .gwt-StackPanel .gwt-StackPanelItem {
>        font-weight: bold;
>        font-size: 8pt;
>        width: 400px;
>        /*background: url('images/toggle-c.gif');*/
>        background-color: #EEE;
>        background-position: top right;
>        background-repeat: no-repeat;
> }
>
> Unfortunately, my selected panel is overwritten by the first panel's
> CSS somehow.  Any help?  Is this a bug?  If I leave the ".gwt-
> StackPanel .gwt-StackPanelItem" alone, it uses the GWT css and then
> will inherit my selected CSS correctly, but only then.
> >
>

--~--~-~--~~~---~--~~
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: Using previously existing project on the client side

2009-02-25 Thread Sumit Chandel
Hi Rafael,
That is correct. Any widgets or POJOs you would like to use on the
client-side must have their source available for the GWT compiler to see,
optimize and cross-compile it. However, since you mentioned that the classes
you want to reuse are ORM generated and a little more than POJOs, you still
might not be able to use those classes in your client-side GWT code.

The thing to keep in mind is that GWT code gets cross-compiled to
JavaScript. This means that anything you write in your GWT code must have
some rough equivalent in the JavaScript world. This makes sense for things
like java.util.Map and java.util.List, but less so for things like
java.io.FileWriter or java.util.Semaphore. The list of types that GWT
supports from the JRE world can be found in the Emulated JRE documentation
(link below). This means that as long as the ORM generated classes only use
types that are supported in the Emulated JRE, you should be able to use them
on the client-side GWT code. If not, you'll have to create your own data
transfer objects (DTOs) or you might want to look into the Gilead project,
which provides a way for reusing ORM types seamlessly in your GWT code. Many
developers have been using this library to integrate with Hibernate, which
also does its own class generation and has its own inheritance hierarchy for
certain types mapped to the database.

Emulated JRE:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=RefJreEmulation

Gilead project:
http://noon.gilead.free.fr/gilead/

Hope that helps,
-Sumit Chandel

On Wed, Feb 18, 2009 at 8:21 AM, Rafael Barrera Oro wrote:

> Hello, i just wanted to make sure that i got it right...
>
> If i have an existing project, which has its own dependencies, and i want
> to use it on my GWT application, on the client side, ¿i have to package the
> mentioned project and then get the source packages for all its dependencies?
> (considering they are all 5.0 compatible)
>
> The problem is i have an ORM generator which generates a set of classes
> which i would like to use on the client side, but they are a little more
> than POJOS, thats why they have their own dependencies and i have not been
> able to use them so far (on the client side, of course).
>
> Thank you all in advance
>
> Cheers!
>
> Rafael
>
> >
>

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



Re: GWT Stackpanel selected issue

2009-02-25 Thread ProtoLD

Thanks, I had a different order when trying out some other style names
so I figured it didn't matter.  Tried it again with these and found it
worked.

On Feb 25, 11:43 am, Isaac Truett  wrote:
> Both of those rules have the same "weight" so when an element matches
> both, the last one takes precedence. I believe you will get the
> desired result by reversing the order of the two rules.
>
> On Wed, Feb 25, 2009 at 11:46 AM, ProtoLD  wrote:
>
> > I cannot seem to set the CSS of the selected stack panel without
> > having it get overwritten by the unselected CSS.  If I leave the
> > unselected alone, the selected stack panel will correctly overwrite,
> > but if I define my own, it will not.  Is this a bug, or some "working
> > as intended" thing?
>
> > Here I set my CSS:
>
> > .gwt-StackPanel .gwt-StackPanelItem-selected {
> >        background: url('images/toggle-o.gif');
> > }
>
> > .gwt-StackPanel .gwt-StackPanelItem {
> >        font-weight: bold;
> >        font-size: 8pt;
> >        width: 400px;
> >        /*background: url('images/toggle-c.gif');*/
> >        background-color: #EEE;
> >        background-position: top right;
> >        background-repeat: no-repeat;
> > }
>
> > Unfortunately, my selected panel is overwritten by the first panel's
> > CSS somehow.  Any help?  Is this a bug?  If I leave the ".gwt-
> > StackPanel .gwt-StackPanelItem" alone, it uses the GWT css and then
> > will inherit my selected CSS correctly, but only then.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6 M1 - webAppCreator - having creation problems?

2009-02-25 Thread branflake2267

Run the external tools, ant to compile the project to get it to work.

> right click on build.xml > run ant external tool

On Feb 22, 11:44 am, branflake2267  wrote:
> I found running webAppCreator like this creates the proper directory
> structure:
> ./webAppCreator -out /home/branflake2267/workspace2/Sandbox
> com.gawkat.gwt.test.Sandbox
>
> although, I can't seem to get the application to run yet.
> brandon
>
> On Feb 22, 11:11 am, branflake2267  wrote:
>
> > Issue 
> > created:http://code.google.com/p/google-web-toolkit/issues/detail?id=3380&can=4
>
> > On Feb 22, 10:53 am, branflake2267  wrote:
>
> > > I get this error after trying to run TestApp.
>
> > > 2009-02-22 10:53:09.727::INFO:  Logging to STDERR via
> > > org.mortbay.log.StdErrLog
> > > 2009-02-22 10:53:09.776::INFO:  jetty-6.1.x
> > > 2009-02-22 10:53:09.927::WARN:  failed echoServlet
> > > java.lang.NoClassDefFoundError: com/google/gwt/user/client/rpc/
> > > RemoteService
> > >         at java.lang.ClassLoader.defineClass1(Native Method)
> > >         at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
> > >         at 
> > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
> > > 124)
> > >         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> > >         at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
> > >         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> > >         at java.security.AccessController.doPrivileged(Native Method)
> > >         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >         at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass
> > > (WebAppClassLoader.java:366)
> > >         at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass
> > > (WebAppClassLoader.java:337)
> > >         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > >         at java.lang.ClassLoader.defineClass1(Native Method)
> > >         at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
> > >         at 
> > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
> > > 124)
> > >         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> > >         at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
> > >         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> > >         at java.security.AccessController.doPrivileged(Native Method)
> > >         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >         at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass
> > > (WebAppClassLoader.java:366)
> > >         at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass
> > > (WebAppClassLoader.java:337)
> > >         at org.mortbay.util.Loader.loadClass(Loader.java:91)
> > >         at org.mortbay.util.Loader.loadClass(Loader.java:71)
> > >         at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73)
> > >         at 
> > > org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
> > > 233)
> > >         at org.mortbay.component.AbstractLifeCycle.start
> > > (AbstractLifeCycle.java:39)
> > >         at org.mortbay.jetty.servlet.ServletHandler.initialize
> > > (ServletHandler.java:616)
> > >         at 
> > > org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> > >         at org.mortbay.jetty.webapp.WebAppContext.startContext
> > > (WebAppContext.java:1220)
> > >         at org.mortbay.jetty.handler.ContextHandler.doStart
> > > (ContextHandler.java:513)
> > >         at 
> > > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
> > > 448)
> > >         at com.google.gwt.dev.shell.jetty.JettyLauncher
> > > $WebAppContextWithReload.doStart(JettyLauncher.java:236)
> > >         at org.mortbay.component.AbstractLifeCycle.start
> > > (AbstractLifeCycle.java:39)
> > >         at org.mortbay.jetty.handler.HandlerWrapper.doStart
> > > (HandlerWrapper.java:130)
> > >         at org.mortbay.jetty.Server.doStart(Server.java:222)
> > >         at org.mortbay.component.AbstractLifeCycle.start
> > > (AbstractLifeCycle.java:39)
> > >         at com.google.gwt.dev.shell.jetty.JettyLauncher.start
> > > (JettyLauncher.java:283)
> > >         at 
> > > com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:368)
> > >         at 
> > > com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:587)
> > >         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:394)
> > >         at com.google.gwt.dev.HostedMode.main(HostedMode.java:231)
> > > Caused by: java.lang.ClassNotFoundException
> > >         at com.google.gwt.dev.shell.jetty.JettyLauncher
> > > $WebAppContextWithReload$1.findClass(JettyLauncher.java:217)
> > >         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > >         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > >         at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass
> > > (WebAppClassLoader.java:375)
> > >         at org.mortbay.jetty.webapp.WebAppClassLoader.lo

Re: Know when the site is being viewed by hand held

2009-02-25 Thread davidroe

examine the incoming user-agent in the HTTP headers, or in Javascript,
examine navigator.userAgent to determine which browser is being used.

/dave

On Feb 25, 9:23 am, Sean  wrote:
> I was wondering how certain sites, ESPN.com for example know to go to
> the hand helds version of the site (Smaller, more compact, less
> pictures) when viewing it on the iPhone for example.
>
> I'd like to take a stab at making one, but I would like to know how to
> detect and then redirect the browser to the hand held site?
>
> Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: historyHandler GWT 1.6m1 and IE6/7 error

2009-02-25 Thread Sumit Chandel
Hi bond,
Thanks for reporting the issue (both here and on the Issue Tracker). I've
posted the Issue Tracker link below to keep track of updates.

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

Cheers,
-Sumit Chandel

On Wed, Feb 18, 2009 at 12:53 PM, bond  wrote:

>
> Hi,
> I'm trying the GWT's milestone 1. With this code:
>
> final ValueChangeHandler historyHandler = new
> ValueChangeHandler() {
>
>@Override
>public void onValueChange(ValueChangeEvent event)
> {
>//Window.alert("Valore history cambiato");
>}
>};
>History.addValueChangeHandler(historyHandler);
>
>
> All in Firefox works but in IE6 or IE7 the application is not loaded
> beacuse of an error: handlers is null or it's not a object.
> This is the code that raise the error(get with a debug tool):
>
> _ = DocumentRootImpl.prototype = new Object_0();
> _.getClass$ = getClass_21;
> _.typeId$ = 0;
> var documentRoot;
> function $addValueChangeHandler(this$static, handler){
>  return $addHandler_0(this$static.handlers, getType_1(), handler);
> }
>
> Any ideas to solve the problem?
>
> Thanks!
>
> Regards
> >
>

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



Re: How to retrieve data as byte[] in GWT from getImageData

2009-02-25 Thread Kevin Tarn
I have solved problem.

Kevin

On Thu, Feb 26, 2009 at 12:45 AM, Kevin Tarn  wrote:

>
> I have a canvas widget. I want to use JSNI to get canvas bitmap by
> getImageData method. Is there a way to return getImageData output to
> Java byte[]?
>
> Kevin
> >
>

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



LiveGrid not showing/(loading?) data

2009-02-25 Thread usul27

I tried to create an application using LiveGrid. Unfortunately, it is
requesting data from the servlet, but not
showing it.
After hours of debugging without results I used the LiveGruid demo
code from the showcase, but this
shows the same problem.

I guess, I missed some small thing. Any idea?

Regards
Daniel


Grid creation code:
--
public static Panel getGrid() {

FieldDef[] fieldDefs = new FieldDef[] { new IntegerFieldDef
("number_field"),
new StringFieldDef("string_field"), new 
DateFieldDef("date_field",
"Y-m-d H:i:s") };
RecordDef recordDef = new RecordDef(fieldDefs);

BufferedJsonReader reader = new BufferedJsonReader
("response.value.items", recordDef);
reader.setVersionProperty("response.value.version");
reader.setTotalProperty("response.value.total_count");
reader.setId("id");

BufferedStore store = new BufferedStore(reader);
store.setAutoLoad(true);
store.setBufferSize(300);
store.setSortInfo(new SortState("number_field", SortDir.ASC));
store.setUrl("LiveGridDataProxy");

BufferedGridView view = new BufferedGridView();
//view.setLoadMask("Wait ...");
view.setNearLimit(100);

BufferedGridToolbar toolbar = new BufferedGridToolbar(view);
toolbar.setDisplayInfo(true);

BufferedRowSelectionModel brsm = new 
BufferedRowSelectionModel();

GridPanel grid = new GridPanel(store, createColModel());
grid.setEnableDragDrop(false);
grid.setSelectionModel(brsm);
grid.setView(view);
grid.setBottomToolbar(toolbar);
grid.setWidth(400);
grid.getView().setAutoFill(true);
grid.getView().setForceFit(true);

return grid;
}
--

gwt.xml:


























--~--~-~--~~~---~--~~
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: Memory Leak with IE7

2009-02-25 Thread Matas

hi, Michela,
I have similar problem (in different context) with gwt 1.5.3. and
IE6/7 memory leaks. After some findings I found that leaking is caused
by trasparency filter:

style.filter = 'alpha(opacity=0)';

Try to remove transparency effects and then check for memory leaks.

Please, take a look at the issue for details:
http://code.google.com/p/google-web-toolkit/issues/detail?id=2329&q=popuppanel%20leak#c5

--
Matas

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



Generated JSNI Overlay Type code is currently "second-class citizen"

2009-02-25 Thread ashita

Hello,

I've written a nice little generator to generate Overlay Types for
mementos (Rails-GWT interop), however I kept encountering a strange
exception any time I wanted to cast (or use in any way) a
JavaScriptObject to the generated class. The generated output was as
follows: ( gwt-mac-1.5.3 )


package hu.thepaw.presskit.client.worksheets;

public class OrderSheetJsonMemento extends
com.google.gwt.core.client.JavaScriptObject {
  protected  OrderSheetJsonMemento(){}  // Necessary, since Composer
doesn't allow to set the access flags flags for the generated class
  public final native  String getdeadline() /*-{ return
this.deadline; }-*/;
  public final native  String getcreated_at() /*-{ return
this.created_at; }-*/;
  /* ...BLAH-BLAH... */
}

Now each time the object is used is made:
JavaScriptObject mementoJSO=...
OrderSheetJsonMemento memento = mementoJSO.cast();

I get an exception (both hosted and deployed mode).

[ERROR] Uncaught exception escaped
java.lang.ClassFormatError: Illegal method name "$" in class
hu/thepaw/presskit/client/worksheets/OrderSheetJsonMemento
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.lang.ClassLoader.defineClass(ClassLoader.java:520)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass
(CompilingClassLoader.java:593)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at
hu.thepaw.presskit.client.worksheets.OrderSheetStoreImplementation.assignFromMemento
(transient source for
hu.thepaw.presskit.client.worksheets.OrderSheetStoreImplementation:67)
...BLAH-BLAH..

After a few hours of debugging it, I copied the generated file (from
the path specified by -gen) into the original classpath, the problem
disappears. All other generated code (including native methods in
"normal" (non-overlay) classes) works fine.

My guess is that some part of the transformation of Overlay Types is
done only prior to code generation. I am trying to fix this, however I
would like to ask the help of you fine gwt developers ( :) ) too: I
will be looking into the compiler's JSNI generator for my answers, if
anyone has any suggestions, please answer to this thread



ps: I've already submitted a ticket for this:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3383&can=4

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



More than one onModuleLoad?

2009-02-25 Thread DanyZift

Hi,

Just starting on GWT.

When creating multiple html pages, how do i go about linking a newly
added html page to the correct java classes? I tried added it into
the ...gwt.xml file under http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to Debug/Trace client side code when deploying Tomcat

2009-02-25 Thread joe young

I'm using NetBeans to develope my GWT applicaiotn.

Everything works fine when i deploy to gwt-shell-hosted.  However when
I deploy to tomcat 6 with netbeans,  many little problems occur. Such
as.

I have a TreePanel that display all the regions. When the TreePanel
first create, it will call RPC to retreive data
service.getGeoRootNode(new AsyncCallback() {
public void onSuccess(Object result) {

GeoNode rootNode = (GeoNode) result;

rootTreeNode.setText(rootNode.getNodeDesc());

rootTreeNode.setIconCls(rootNode.getNodeName() + "-
icon");

buildChildTreeNode(rootNode, rootTreeNode);  // build
the children nodes

setRootNode(rootTreeNode);
}
});
However the tree building stop right after the rootNode is created.  I
cannot trace the code because GWT.log() cannot print to tomcat logging
(I'm using log4J for server side logging) thus I don't know what
happen

Question1: How can we trace the client side code? Is it possible that
ask GWT.log dump to log4J?

Question 2: Is it because  buildChildTreeNode(rootNode, rootTreeNode)
is outside of onSuccess() so it cannot be run??


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



Re: Memory Leak with IE7

2009-02-25 Thread koalina

thx eric, the problem is that in gwt i have to instantiate a new
marker object every time i add a marker: in fact it's not possible to
update the "options", but they are defined only in the constructor.So,
how can i solve with this application?is there any patch for google
maps api for gwt?
thx,

Michela

On Feb 25, 6:24 pm, Eric Ayers  wrote:
> I've been able to reproduce a leak in pure JavaScript without any GWT.
>  This issue is described in the Maps API issue tracker
>
> http://code.google.com/p/gmaps-api-issues/issues/detail?id=945
>
> I attached some sample JavaScript for creating a pool of markers
> instead of removing them from the map.
>
> -Eric.
>
> On Wed, Feb 25, 2009 at 9:48 AM, koalina  wrote:
>
> > hi all,
> > I've tried as suggested by jason with this semplified piece of code:
> > public class MainEntryPoint implements EntryPoint{
>
> >    private Marker marker;
> >    private MapWidget map;
>
> >    public MainEntryPoint() {
> >    }
>
> >    /**
> >     * The entry point method, called automatically by loading a
> > module
> >     * that declares an implementing class as an entry-point
> >     */
> >    public void onModuleLoad() {
>
> >        map = new MapWidget(LatLng.newInstance(38.1890087,
> > 15.5648162), 12);
>
> >        map.checkResizeAndCenter();
> >        RootPanel.get().add(map);
> >        Timer t = new Timer(){
> >           �...@override
> >            public void run() {
> >                for (int i = 0; i < 10; i++)
> >                {
> >                    map.clearOverlays();
> >                    map.addOverlay(createMarker());
> >                }
> >            }
> >        };
> >        t.scheduleRepeating(3000);
>
> >        //180209Miki:per prima cosa devo caricare le api
> > *dinamicamente*
> >        //...poi tutto il resto di conseguenza
>
> >        //lookupKey(Window.Location.getHost());
>
> >    }
> >    public Marker createMarker()
> >    {
> >        marker = null;
> >        marker = new Marker(LatLng.newInstance(new Double(15), new
> > Double(38)));
> >        return marker;
>
> >    }
> > }
>
> > I would expect memory doesn't increase.. it doesn't
> > clearOverlays does not remove references with ie7
> > any workaround...?
> > please help, thx,
> > Michela
>
> > On 24 Feb, 20:22, koalina  wrote:
> >> commenting the addOverlay, memory usage is costant...
> >> that's why i think there's something wrong with the clearOverlays..
> >> thx for help,
> >> michela
>
> >> On Feb 24, 5:47 pm, Eric Ayers  wrote:
>
> >> > Yeah, you are right.
>
> >> > One thing you could try is to comment out the 'addOverlay()' call and
> >> > measure your memory again.  You won't see anything, but it will tell
> >> > you if this is the problem.
>
> >> > On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>
> >> > > but i call the clerOverlays each time i run the timer.. at each loop
> >> > > the markers should be deallocated... aren't they?
> >> > > Michela
>
> >> > > On 24 Feb, 17:31, Eric Ayers  wrote:
> >> > >> Think about what your code is doing here.
>
> >> > >> You are allocating marker objects and adding them to the map every
> >> > >> time your timer expires.
> >> > >> The map will track these things for you until you call 
> >> > >> map.removeOverlay().
>
> >> > >> My guess is that you have hundreds of markers added to the map, all
> >> > >> stacked on top of each other.
>
> >> > >>http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html
>
> >> > >> On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>
> >> > >> > Hi all, I've found the cause of the memory leak isolating by some
> >> > >> > piece of code. It seems not to be caused by gwt-ext but when I make
> >> > >> > the map.addOverlay(createMarker(point,  myObject));
>
> >> > >> > where createMarker is:
>
> >> > >> > Icon icon = Icon.newInstance(baseIcon);
>
> >> > >> >        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
> >> > >> > (nave)+"_ship.png");
>
> >> > >> >        GWT.log("Carico immagine "+icon.getImageURL(), null);
> >> > >> >        LabeledMarkerOptions options = 
> >> > >> > LabeledMarkerOptions.newInstance
> >> > >> > ();
> >> > >> >        options.setTitle(nave.getNomeNave());
> >> > >> >        options.setIcon(icon);
>
> >> > >> >        options.setLabelText(String.valueOf(nave.getIdNave()));
>
> >> > >> >        options.setLabelClass("labeledMarker");
>
> >> > >> >        //200209Miki: se l'id nave è lungo una solo cifra va bene
> >> > >> > così...
> >> > >> >        if((Integer.toString(nave.getIdNave())).length()==1)
> >> > >> >            options.setLabelOffset(Size.newInstance(1, -26));
> >> > >> >        //altrimenti devo shiftare la label di due posti a 
> >> > >> > sinistra...
> >> > >> >        else
> >> > >> >            options.setLabelOffset(Size.newInstance(-2, -26));
> >> > >> > //
>
> >> > >> >        LabeledMarker marker = new LabeledMarker(point, options);
>
> >> > >> >        ((Marker)marker).addMarkerClickHandler(new MarkerClickHandler
> >> > >> > () {
>
>

Re: Apply CSS in editor area of RichTextArea

2009-02-25 Thread A Friend Of Yours

Well I don't know much about javascript and GWT but I would say that
try to avoid JSNI as much as possible. Why I think so? Because GWT
claims to generate a different version of javascript for each browser.
So, your code would be much more reliable if you try to avoid it. When
I tried the to do this, I used GWT API (in java):

// Setting style element in head
Document d =
IFrameElement.as(myRichTextArea.
getElement()).getContentDocument();

BodyElement b = d.getBody();
HeadElement h =
HeadElement.as(Element.as(
b.getPreviousSibling()));

StyleElement s = d.createStyleElement();
s.setInnerText(".mystyle {text-align: right;}");
h.appendChild(s);

// Use DOM to style some element
b.setClassName("mystyle");

And I didnt get any error.

Hope it helps

Omer Akhter
On Feb 25, 6:38 pm, Danny Schimke  wrote:
> I've seen many examples where JSNI is used, like the following:
>
> private native void myJsniMethod(Element oElement)/*-{
>   var oDoc = oElement.contentWindow;
>   // var oDoc = oElement.contentWindow || oElement.contentDocument;
>   if (oDoc.document != null) {
>     oDoc = oDoc.document;
>     // more actions here...
>   }
>
> }-*/;
>
> I tried to use JSNI method too. But an error occurs when trying to call *
> oElement.contentWindow* because its value is *null* (I've seen in Firefox,
> In IE you cant see the reason for throwing the error). Why does it should
> work in many examples you can find in the web? Is there anything special to
> watch?
>
> -Danny
>
> 2009/2/24 Danny Schimke 
>
> > Hi Omer!
>
> > 1. Yes I am using Windows and yes: Hosted Mode uses the installed IE.
> > 2. The error occurs in compiled mode (Firefox, IE) too.
>
> > I show a preview for multilingual text (english, german, french, etc.).
> > It's font-family is shown in "Arial,Helvetica", but the RichTextArea is
> > using the browsers font (If I am not mistaken!?). It does not look nice,
> > when the editors text has a different font, than its preview...
>
> > I hope I'll crack this in future ;)
>
> > Thank you Omer!!!
> > -Danny
>
> > 2009/2/24 A Friend Of Yours 
>
> >> > Any Idea, why the error occurs?
>
> >> No; not really!
>
> >> If you could provide more details:
> >> 1. Are you having this error in Hosted Mode or Web Mode?
> >> Because some javascript trick don't work in Hosted Mode so things like
> >> this happen.
>
> >> 2. Hosted Mode: Are you using Windows?
> >> Hosted Mode browser in windows uses Internet Explorer components to
> >> render its view (not sure if it is true though). While I used this in
> >> linux where Hosted Mode uses mozilla components.
>
> >> 3. Web Mode: Goes without saying; are you using Internet Explorer for
> >> Web Mode?
> >> As I had mentioned, I have only tested this solution on Firefox in
> >> Linux.
>
> >> Hope this helps
>
> >> Omer Akhter
>
> >> Danny Schimke wrote:
> >> > I need to set the CSS for RichTextArea too and tried out your idea. I've
> >> got
> >> > the following Error in the first line where I create the Document object
> >> > using my RichTextArea:
>
> >> > com.google.gwt.core.client.JavaScriptException: (Error): Unknown Error.
> >> >  number: -2147467259
> >> >  description: Unknown Error.
>
> >> > Any Idea, why the error occurs?
>
> >> > Thanks!
> >> > -Danny
>
> >> > 2009/2/17 A Friend Of Yours 
>
> >> > > Please try to maintain a single thread:
>
> >>http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> >> > > On Feb 17, 8:10 pm, "Manish Kumar"  wrote:
> >> > > > Hi All,
>
> >> > > > Could I please have any idea on this( in mail below ).
>
> >> > > > Regards
> >> > > > Manish
>
> >> > > >   - Original Message -
> >> > > >   From: Manish Kumar
> >> > > >   To: Google-Web-Toolkit@googlegroups.com
> >> > > >   Sent: Tuesday, February 17, 2009 10:46 AM
> >> > > >   Subject: Apply CSS in editor area of RichTextArea
>
> >> > > >   Hi Everybody,
>
> >> > > >   While working on adding RichTextArea with my project.I would like
> >> to
> >> > > apply css on editor area of Rich Text Area control so that I can set
> >> font
> >> > > behaviours ( font-family, font-weight,font-size etc ) being displayed
> >> in the
> >> > > rich text area editing area a bit changeable.
>
> >> > > >   can anybody help me out to get rid of this issue.
>
> >> > > >   Thanks
> >> > > >   Manish
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Announcing GWT 1.6 Milestone 2

2009-02-25 Thread Bruce Johnson
The GWT team is happy to announce the availability of Google Web Toolkit 1.6
Milestone 2! Binary distributions are available for download directly from
the GWT Google Code project.

http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=1.6+Milestone+2

If you have already tried GWT 1.6 Milestone 1, you may not notice much
difference in Milestone 2. Changes have mostly been general polish and
various small bug fixes. For the nitty-gritty details of the changes since
the previous milestone, see the attached source control commit logs. You can
also watch the GWT bug tracker for the most up-to-date list of resolved
issues (
http://code.google.com/p/google-web-toolkit/issues/list?can=1&q=status:Fixed,FixedNotReleased%20milestone:1_6_RC&num=1000).
As for doc, the javadoc that comes bundled with the distribution should be
up-to-date, but the online Developer Guide (
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6) is still
being tweaked.

We anticipate that GWT 1.6 M2 will be the last milestone build for this
version. After a few more bugs fixes and a bit more doc, we expect it to be
followed soon by a release candidate build. In the meanwhile, please report
bugs to the GWT issue tracker (
http://code.google.com/p/google-web-toolkit/issues/list) after doing a quick
search to see if your issue has already been reported. If you encounter a
bug in 1.6 M2 that you think qualifies as a showstopper, we would greatly
appreciate it if you'd also reply on this thread to alert the engineering
team.

As always, remember that GWT milestone builds like this are
use-at-your-own-risk. Don't be surprised if it takes a bit of trial and
error to get everything to work, and we don't recommend it for production
use quite yet.

-- Bruce, on behalf of the GWT team

--~--~-~--~~~---~--~~
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: Memory Leak with IE7

2009-02-25 Thread Eric Ayers

In my tests, an implementation that uses 'removeOverlay()' didn't seem
to leak after running a long time (although it used more memory than
the pool implementation)

The clearOverlays() leak is independent of the GWT wrappers, so about
the best I can say for getting the memory leak resolved is to go to
the issue and 'star' the issue.  You can post on the issue or on the
Maps API list about why this is blocking for your application.

Depending on how many icons you have, I think you could work around it
by creating pools of markers by icon, and use some of the LabelMarker
setters to reset the text labels.  If there is some functionality you
need, since you have the source to LabeledMarker, maybe there is some
enhancement you could make to it to help add a way to set resources
after the LabeledMarker is constructed.

-Eric.

On Wed, Feb 25, 2009 at 2:54 PM, koalina  wrote:
>
> thx eric, the problem is that in gwt i have to instantiate a new
> marker object every time i add a marker: in fact it's not possible to
> update the "options", but they are defined only in the constructor.So,
> how can i solve with this application?is there any patch for google
> maps api for gwt?
> thx,
>
> Michela
>
> On Feb 25, 6:24 pm, Eric Ayers  wrote:
>> I've been able to reproduce a leak in pure JavaScript without any GWT.
>>  This issue is described in the Maps API issue tracker
>>
>> http://code.google.com/p/gmaps-api-issues/issues/detail?id=945
>>
>> I attached some sample JavaScript for creating a pool of markers
>> instead of removing them from the map.
>>
>> -Eric.
>>
>> On Wed, Feb 25, 2009 at 9:48 AM, koalina  wrote:
>>
>> > hi all,
>> > I've tried as suggested by jason with this semplified piece of code:
>> > public class MainEntryPoint implements EntryPoint{
>>
>> >    private Marker marker;
>> >    private MapWidget map;
>>
>> >    public MainEntryPoint() {
>> >    }
>>
>> >    /**
>> >     * The entry point method, called automatically by loading a
>> > module
>> >     * that declares an implementing class as an entry-point
>> >     */
>> >    public void onModuleLoad() {
>>
>> >        map = new MapWidget(LatLng.newInstance(38.1890087,
>> > 15.5648162), 12);
>>
>> >        map.checkResizeAndCenter();
>> >        RootPanel.get().add(map);
>> >        Timer t = new Timer(){
>> >           �...@override
>> >            public void run() {
>> >                for (int i = 0; i < 10; i++)
>> >                {
>> >                    map.clearOverlays();
>> >                    map.addOverlay(createMarker());
>> >                }
>> >            }
>> >        };
>> >        t.scheduleRepeating(3000);
>>
>> >        //180209Miki:per prima cosa devo caricare le api
>> > *dinamicamente*
>> >        //...poi tutto il resto di conseguenza
>>
>> >        //lookupKey(Window.Location.getHost());
>>
>> >    }
>> >    public Marker createMarker()
>> >    {
>> >        marker = null;
>> >        marker = new Marker(LatLng.newInstance(new Double(15), new
>> > Double(38)));
>> >        return marker;
>>
>> >    }
>> > }
>>
>> > I would expect memory doesn't increase.. it doesn't
>> > clearOverlays does not remove references with ie7
>> > any workaround...?
>> > please help, thx,
>> > Michela
>>
>> > On 24 Feb, 20:22, koalina  wrote:
>> >> commenting the addOverlay, memory usage is costant...
>> >> that's why i think there's something wrong with the clearOverlays..
>> >> thx for help,
>> >> michela
>>
>> >> On Feb 24, 5:47 pm, Eric Ayers  wrote:
>>
>> >> > Yeah, you are right.
>>
>> >> > One thing you could try is to comment out the 'addOverlay()' call and
>> >> > measure your memory again.  You won't see anything, but it will tell
>> >> > you if this is the problem.
>>
>> >> > On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>>
>> >> > > but i call the clerOverlays each time i run the timer.. at each loop
>> >> > > the markers should be deallocated... aren't they?
>> >> > > Michela
>>
>> >> > > On 24 Feb, 17:31, Eric Ayers  wrote:
>> >> > >> Think about what your code is doing here.
>>
>> >> > >> You are allocating marker objects and adding them to the map every
>> >> > >> time your timer expires.
>> >> > >> The map will track these things for you until you call 
>> >> > >> map.removeOverlay().
>>
>> >> > >> My guess is that you have hundreds of markers added to the map, all
>> >> > >> stacked on top of each other.
>>
>> >> > >>http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/index.html
>>
>> >> > >> On Tue, Feb 24, 2009 at 6:57 AM, koalina  wrote:
>>
>> >> > >> > Hi all, I've found the cause of the memory leak isolating by some
>> >> > >> > piece of code. It seems not to be caused by gwt-ext but when I make
>> >> > >> > the map.addOverlay(createMarker(point,  myObject));
>>
>> >> > >> > where createMarker is:
>>
>> >> > >> > Icon icon = Icon.newInstance(baseIcon);
>>
>> >> > >> >        icon.setImageURL(GWT.getModuleBaseURL()+"images/"+getColor
>> >> > >> > (nave)+"_ship.png");
>>
>> >> > >> >        GWT.log("Carico i

Display Source Code

2009-02-25 Thread Sean

I was wondering if there was an easy way to display source code like
done in the GWT Showcase:
http://ongwt.googlecode.com/svn/trunk/com.google.gwt.sample.showcase.Showcase/Showcase.html#CwTabPanel

I want to do a similar type site for various things I create, but I
can't figure out a good way to display the source code. I could copy
and paste it into a string, but escaping all the characters so it
looks correct could be a huge pain in the butt. Was wondering if there
was an easy way before I went through this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



how to dynamically update image on the app

2009-02-25 Thread mars

hi,

i have images on my application, which set their url to the following"

http://xxx.xxx.xx/graph.php?width=320&height=145

this url return an image created by server, it changes dynamically, so
in my code, i have:


image = new Image(url);  (url is the above)
add(image);

but once the image is loaded, it stay static forever, won't updated
following server.

i try different way to udpate image:

public void udpate() {
   image = null;
   image = new Image(url);
}
but still it stay static

can anyone help? thanks!!!1
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Translating on the server-side

2009-02-25 Thread jbdhl

Consider a case where some RPCs in a GWT application will trigger the
server to send an email to the user where the email should be sent in
the language used at the requesting client.

1) How should I approach this server-side internationalization (i18n)?
Can GWTs i18n be used in this situation?

2) The email will have multiple paragraphs of text, not just one-line
messages as the property files are limited to (as far as I know).
Similarly, our help-page and about-page have many large paragraphs of
text. How can I translate these multi-line texts?

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



Re: how to dynamically update image on the app

2009-02-25 Thread Peter Radmanesh
Maybe the data returned by the URL is cached; have you tried adding a
time-stamp to the URL (i.e. http://xxx.xxx.xx/graph.php?width=320&height=145
&ts=)

On Wed, Feb 25, 2009 at 5:26 PM, mars  wrote:

>
> hi,
>
> i have images on my application, which set their url to the following"
>
> http://xxx.xxx.xx/graph.php?width=320&height=145
>
> this url return an image created by server, it changes dynamically, so
> in my code, i have:
>
>
> image = new Image(url);  (url is the above)
> add(image);
>
> but once the image is loaded, it stay static forever, won't updated
> following server.
>
> i try different way to udpate image:
>
> public void udpate() {
>   image = null;
>   image = new Image(url);
> }
> but still it stay static
>
> can anyone help? thanks!!!1
> >
>

--~--~-~--~~~---~--~~
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: Spring Security and GWT : how I've done

2009-02-25 Thread CK
Just a few quick notes:

1) JSecurity uses the JSecurity framework.  Grails Acegi plugin uses  
the Acegi security framework, which is now called Spring Security.

2) You can configure session timeout either directly in the Session  
object (retrieve it using getSession() in a controller or access to  
the session object in a grails controller) or you can configure it for  
the entire web app in the web.xml.  There is a web.xml session timeout  
setting you can use set.

Whenever an ajax request hits the server and whenever you access the  
session, it should automatically renew your session expire lease.   
These ajax requests should be no different than a normal request to  
the server requesting for a page.  You can also manually force a  
session refresh through the use of a Servlet Filter.

On the client side using RPC, I have a defined LoginTimeoutException  
that gets thrown for any RPC request that comes in after a session  
expires.  The RPC onFailure() will specifically check this exception  
and cause the browser to reload the web page.  This reload will then  
force the user to the login page again.

You can also have the client pop up a login dialog requesting for a  
relogin.  Submitting this login request should reauthenticate the user  
and then recreate a new session.

Hope this helps
-ck

On Feb 25, 2009, at 8:45 AM, Felipe Cypriano wrote:

> I'm thinking in using Grails (JSecurity Plugin, which "is" Spring  
> Security) with GWT as the interface. Have you tried this?
>
> I haven't tested this yet, but the session expiration is a issue  
> using GWT? For example, the timeout for a session is 30 minutes,  
> everytime GWT does an "ajax" request the timeout counter is  
> restarted or every 30 minutes with the user didn't do a refresh (old  
> school request) the session will expires?
>
>
> Thanks,
>
> ---
> Felipe Marin Cypriano
> Vitória - ES
> http://www.linkedin.com/in/felipecypriano
>
>
> On Wed, Feb 25, 2009 at 6:14 AM, David  wrote:
>
> I've added additional information (examples mainly) and will upload a
> jar ASAP in order to make it easy to test.
>
> And do not hesitate to give me feedback.
>
> David
>
> On Feb 22, 4:13 pm, jossey  wrote:
> > Hi David,
> > I really appreciate you sharing this.
> > Thanks.
> >
> > On Feb 19, 3:03 pm, David  wrote:
> >
> > > Hi everyone,
> >
> > > This is my second message promoting something I've put in my  
> "GWT test
> > > area" :) I hope you'll find it useful : It may help people to
> > > integrate Spring Security with GWT applications in a clean  
> (that's my
> > > non-objective POV ! :)) way.
> >
> > > Here is a small introduction on how it works ; a more detailed
> > > description is available on code.google.com. See the link at the  
> end
> > > of this message.
> >
> > > First thing : it uses GWT-SL to use simple Spring beans to serve  
> RPC
> > > calls. I've extended the original GWTHandler in order to provide a
> > > convenient way to manage Security exceptions. I've also provided a
> > > specific ExceptionTranslationFilter that can deal with security
> > > exception too.
> >
> > > With these two parts, people can handle both URL filtering and AOP
> > > strategies.
> >
> > > As usual, feel free to post your comments, I'll really  
> appreciate your
> > > feedback.
> >
> > > Here is the URL of the Google Code's project 
> > > :http://code.google.com/p/gwt-incubator-lib
> >
> > > David
> >
> >
>
>
>
> >


--~--~-~--~~~---~--~~
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: Does not work on Firefox

2009-02-25 Thread Mallesh

Hi Tuvok,
thanks for the reply.
i complied the code and using the the link from www
\com.MyProject.StockWatcher\  folder. the same link works fine on IE
but not on FF/chrome.
more over  ,www\com.MyProject.StockWatcher\gwt\standard\images
folder contains only one sub folder named ie6, there was no other
folders(i am not sure weather it should crate a separate folders for
FF or not).
On Feb 24, 10:03 am, Tuvok  wrote:
> Maybe you're just copying the url from the development shell instead
> of compiling?
>
> On Feb 24, 6:54 pm, Mallesh  wrote:
>
> > Hi all,
> >      i have been playing with the gwt sample(http://code.google.com/
> > docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-
> > doc-1-5&t=GettingStartedBasics) provided on the web site.  it works
> > fine on IE6, surprising it does not work on FF 3.0.6 and chrome.  am i
> > doing something wrong ? or do i need to do anything extra to run the
> > same app on other browsers
> >       any suggestion would be appreciated
> > ~Mallesh
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Why doesnt the toggleButton look like a normal button

2009-02-25 Thread aragorn

I have used toggleButtons in my site. The problem is that the
toggleButtons do not look like the usual buttons. Instead, they look
like labels(in browsers IE,FireFox on Linux,Windows). Why is it so? Is
there anyway I can make them look like buttons. Interestingly, this
behavior is not observed in hosted mode where the togglebutton does
appear like a normal button.
Somebody plz help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Help required

2009-02-25 Thread poonam

Hello,
 I am developing an application integrating GWT+Spring+Hibernate
and as suggested by you I have used the help from the site suggested
by you,i.e.
Part One :http://eggsylife.blogspot.com/2007/10/well-this-tutorial-
aims-at-helping.html
Part Two: 
http://eggsylife.blogspot.com/2007/11/hibernate-spring-google-web-toolkit.html
Part Three: 
http://eggsylife.blogspot.com/2008/02/hibernate-spring-google-web-toolkit.html
   I have completed the application development in the hosted mode and
for database I have used MySQL. Now, I have stuck with a problem, when
I compile the application the corresponding files and folders are not
created in the "WEB-INF/classes" folder, this further creates problem
in the generation of  MyApplication-shell that is,to run the
program in the hosted mode.The application runs in the hosted mode,
but when I enter the value in the TextBox and click on Search button
then; here, it gives me a lot of warning messages and finally the
error as,
   1) Unable to instantiate 'com.company.server.TeacherServiceImpl'
and
   2) Unable to dispatch request
Please help me to solve this error.
Thanks,
Poonam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to dynamically update image on the app

2009-02-25 Thread Kevin Tarn
You can try:
image.setUrl("");
image.setUrl(url);

Kevin

On Thu, Feb 26, 2009 at 10:26 AM, Peter Radmanesh  wrote:

> Maybe the data returned by the URL is cached; have you tried adding a
> time-stamp to the URL (i.e.
> http://xxx.xxx.xx/graph.php?width=320&height=145&ts=)
>
>
> On Wed, Feb 25, 2009 at 5:26 PM, mars  wrote:
>
>>
>> hi,
>>
>> i have images on my application, which set their url to the following"
>>
>> http://xxx.xxx.xx/graph.php?width=320&height=145
>>
>> this url return an image created by server, it changes dynamically, so
>> in my code, i have:
>>
>>
>> image = new Image(url);  (url is the above)
>> add(image);
>>
>> but once the image is loaded, it stay static forever, won't updated
>> following server.
>>
>> i try different way to udpate image:
>>
>> public void udpate() {
>>   image = null;
>>   image = new Image(url);
>> }
>> but still it stay static
>>
>> can anyone help? thanks!!!1
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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 plus sign with custom image

2009-02-25 Thread arjun

Hi
I'm new to GWT. can you kindly let me know wat i shd do to change the
default plus/minus sign in the tree with custom images.

advanced thanks for ur help

Arjun.

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



Help Related to GWT 1.6

2009-02-25 Thread tapas...@gmail.com

Hello,
I believe , it's time to explore GWT 1.6 . But I am not so comfortable
in creating project , compiling and launching hosted-mode with this
version as there are many things got changed between 1.5 and 1.6 .
Another difficulty is I have not found any documentation on 1.6.
If anybody have experienced working on GWT 1.6 , please share your
knowledge. Any documentation on this would be highly appreciated.

Thnaks,
-Tapas

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



Facing problem in GWT,Spring,hibernate application

2009-02-25 Thread GWT GWT
Hi
I have done an GWT,Spring,hibernate application using the link
http://eggsylife.blogspot.com/2008/02/hibernate-spring-google-web-too...
 .

My application got open in hosted mode. When i click on search button "
onFailure "  method of  "TeacherModel " class got called.

When I am trying to debug the code, the flow from the following line

PupilCollection collection = (PupilCollection) ContextUtil.*getContext
*().getBean("pupilCollection");
is returning back to "TeacherModel" class.
but I am not getting any exception on this line.

Thanks in advance.

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



Changing language dynamically for all gwt ext components

2009-02-25 Thread anantharam

Hi,
I found this simple and neat way to change the language of the web
page dynamically. This will be helpfull to change the languge of the
gwt ext components also.

Copy and paste the following code into a new file named "decode-
lang.js" and place it in the "src/ext" directory.



// decode language passed in url
   var locale = gup( 'locale' );

// append locale script to the head

if(locale) {
   includeJavascript( 'ext/source/locale/ext-lang-' + locale +
'.js');//Change the relative path of your lang files over here
}

function gup( name )
{

  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
return "";
  else
return results[1];
}

function includeJavascript(src) {
var head_tag = document.getElementsByTagName('head')[0];
var script_tag = document.createElement('script');
script_tag.setAttribute('type', 'text/javascript');
script_tag.setAttribute('src', src);
head_tag.appendChild(script_tag);
}




Now in your "gwt.xml" file add this js file by just adding the line.
  

Now if u access the url with the parameter ?locale=fr or ?locale=de or
any language, all the components are automatically cahnged to the
respective languages.

I just thought this would be usefull since I searched a lot for this..

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



Re: Memory Leak with IE7

2009-02-25 Thread koalina

Hi eric,
the removeOverlay() you are telling about, is the one from gwt? what
argument do you pass?I've tried having a vector of markers, each time
i put a new marker in... then, after clearOverlays, i've tried with
this:
Iterator v = labeledMarkerVector.iterator();
while(v.hasNext())
 {
 //250209Miki: rimuovo anche overlay singolarmente
map.removeOverlay((LabeledMarker)v.next());

}
//250209Miki: e poi svuoto vettore di appoggio
labeledMarkerVector.clear();

but with no luck.. I don't undestand what take the removeOverlay
method... and if it could solve the problem
Thx
Michela

On 25 Feb, 21:58, Eric Ayers  wrote:
> In my tests, an implementation that uses 'removeOverlay()' didn't seem
> to leak after running a long time (although it used more memory than
> the pool implementation)
>
> The clearOverlays() leak is independent of the GWT wrappers, so about
> the best I can say for getting the memory leak resolved is to go to
> the issue and 'star' the issue.  You can post on the issue or on the
> Maps API list about why this is blocking for your application.
>
> Depending on how many icons you have, I think you could work around it
> by creating pools of markers by icon, and use some of the LabelMarker
> setters to reset the text labels.  If there is some functionality you
> need, since you have the source to LabeledMarker, maybe there is some
> enhancement you could make to it to help add a way to set resources
> after the LabeledMarker is constructed.
>
> -Eric.
>
>
>
> On Wed, Feb 25, 2009 at 2:54 PM, koalina  wrote:
>
> > thx eric, the problem is that in gwt i have to instantiate a new
> > marker object every time i add a marker: in fact it's not possible to
> > update the "options", but they are defined only in the constructor.So,
> > how can i solve with this application?is there any patch for google
> > maps api for gwt?
> > thx,
>
> > Michela
>
> > On Feb 25, 6:24 pm, Eric Ayers  wrote:
> >> I've been able to reproduce a leak in pure JavaScript without any GWT.
> >>  This issue is described in the Maps API issue tracker
>
> >>http://code.google.com/p/gmaps-api-issues/issues/detail?id=945
>
> >> I attached some sample JavaScript for creating a pool of markers
> >> instead of removing them from the map.
>
> >> -Eric.
>
> >> On Wed, Feb 25, 2009 at 9:48 AM, koalina  wrote:
>
> >> > hi all,
> >> > I've tried as suggested by jason with this semplified piece of code:
> >> > public class MainEntryPoint implements EntryPoint{
>
> >> >    private Marker marker;
> >> >    private MapWidget map;
>
> >> >    public MainEntryPoint() {
> >> >    }
>
> >> >    /**
> >> >     * The entry point method, called automatically by loading a
> >> > module
> >> >     * that declares an implementing class as an entry-point
> >> >     */
> >> >    public void onModuleLoad() {
>
> >> >        map = new MapWidget(LatLng.newInstance(38.1890087,
> >> > 15.5648162), 12);
>
> >> >        map.checkResizeAndCenter();
> >> >        RootPanel.get().add(map);
> >> >        Timer t = new Timer(){
> >> >           �...@override
> >> >            public void run() {
> >> >                for (int i = 0; i < 10; i++)
> >> >                {
> >> >                    map.clearOverlays();
> >> >                    map.addOverlay(createMarker());
> >> >                }
> >> >            }
> >> >        };
> >> >        t.scheduleRepeating(3000);
>
> >> >        //180209Miki:per prima cosa devo caricare le api
> >> > *dinamicamente*
> >> >        //...poi tutto il resto di conseguenza
>
> >> >        //lookupKey(Window.Location.getHost());
>
> >> >    }
> >> >    public Marker createMarker()
> >> >    {
> >> >        marker = null;
> >> >        marker = new Marker(LatLng.newInstance(new Double(15), new
> >> > Double(38)));
> >> >        return marker;
>
> >> >    }
> >> > }
>
> >> > I would expect memory doesn't increase.. it doesn't
> >> > clearOverlays does not remove references with ie7
> >> > any workaround...?
> >> > please help, thx,
> >> > Michela
>
> >> > On 24 Feb, 20:22, koalina  wrote:
> >> >> commenting the addOverlay, memory usage is costant...
> >> >> that's why i think there's something wrong with the clearOverlays..
> >> >> thx for help,
> >> >> michela
>
> >> >> On Feb 24, 5:47 pm, Eric Ayers  wrote:
>
> >> >> > Yeah, you are right.
>
> >> >> > One thing you could try is to comment out the 'addOverlay()' call and
> >> >> > measure your memory again.  You won't see anything, but it will tell
> >> >> > you if this is the problem.
>
> >> >> > On Tue, Feb 24, 2009 at 11:39 AM, koalina  wrote:
>
> >> >> > > but i call the clerOverlays each time i run the timer.. at each loop
> >> >> > > the markers should be deallocated... aren't they?
> >> >> > > Michela
>
> >> >> > > On 24 Feb, 17:31, Eric Ayers  wrote:
> >> >> > >> Think about what your code is doing here.
>
> >> >> > >> You are allocating marker objects and adding them to the map every
> >> >> > >> time your timer expires.
> >> >> > >> The map will track these things for you

Re: LiveGrid not showing/(loading?) data

2009-02-25 Thread alex.d

I think you are asking in the wrong forum.

On 25 Feb., 16:32, usul27  wrote:
> I tried to create an application using LiveGrid. Unfortunately, it is
> requesting data from the servlet, but not
> showing it.
> After hours of debugging without results I used the LiveGruid demo
> code from the showcase, but this
> shows the same problem.
>
> I guess, I missed some small thing. Any idea?
>
> Regards
> Daniel
>
> Grid creation code:
> --
>         public static Panel getGrid() {
>
>                 FieldDef[] fieldDefs = new FieldDef[] { new IntegerFieldDef
> ("number_field"),
>                                 new StringFieldDef("string_field"), new 
> DateFieldDef("date_field",
> "Y-m-d H:i:s") };
>                 RecordDef recordDef = new RecordDef(fieldDefs);
>
>                 BufferedJsonReader reader = new BufferedJsonReader
> ("response.value.items", recordDef);
>                 reader.setVersionProperty("response.value.version");
>                 reader.setTotalProperty("response.value.total_count");
>                 reader.setId("id");
>
>                 BufferedStore store = new BufferedStore(reader);
>                 store.setAutoLoad(true);
>                 store.setBufferSize(300);
>                 store.setSortInfo(new SortState("number_field", SortDir.ASC));
>                 store.setUrl("LiveGridDataProxy");
>
>                 BufferedGridView view = new BufferedGridView();
>                 //view.setLoadMask("Wait ...");
>                 view.setNearLimit(100);
>
>                 BufferedGridToolbar toolbar = new BufferedGridToolbar(view);
>                 toolbar.setDisplayInfo(true);
>
>                 BufferedRowSelectionModel brsm = new 
> BufferedRowSelectionModel();
>
>                 GridPanel grid = new GridPanel(store, createColModel());
>                 grid.setEnableDragDrop(false);
>                 grid.setSelectionModel(brsm);
>                 grid.setView(view);
>                 grid.setBottomToolbar(toolbar);
>                 grid.setWidth(400);
>                 grid.getView().setAutoFill(true);
>                 grid.getView().setForceFit(true);
>
>                 return grid;
>         }
> --
>
> gwt.xml:
>
> 
>
>         
>          class="net.matuschek.mediawatcher.web.client.MediawatcherMainWindow"/>
>
>         
>
>          class="net.matuschek.mediawatcher.web.server.LiveGridDataProxy"> servlet>
>          name="com.google.gwt.user.User" />
> 
>
>         
>         
>         
>
>         
>         
>         
>         
>         
>         
>
> 
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Drag and drop operation

2009-02-25 Thread vruddhi shah
Hi to all,

Anybody know how to drag and drop work with tree and dataview with GWT.
Please, help me out as early as possible. If any code is available send me.

-- 
Vruddhi Shah
Pyther Innovations Pvt. Ltd.
Land line: 91 78 40074893
617, Devpath Complex
C.G. Road, Ahmedabad
India
www.gwt4enterprise.com

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