Dock Panel

2009-12-30 Thread muhannad nasser
Dear All;

i want to add a style on a DockPanel cell, such ass the north area, or the
west area only..

can anyone please help me

-- 
~~~With Regards~~~
Muhannad Dar-Nasser
~~Computer Systems Engineering~~

--

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




Re: Problem during upgrading to GWT 2.0

2009-12-30 Thread tp
I had similar problems upgrading. Did all the right things, new libs,
DevMode, cleaned, rebuilt.

Finally, I found I had to clear FF's cache as well -- very
frustrating.

On Dec 10, 4:40 pm, Simal  wrote:
> OK.. I guess I found the reason.
>
> The directory that gets automatically generated under war, the one
> that has the module name, had to be deleted. I think the contents of
> that folder were not getting updated after I compiled with GWT 2.0 and
> it was kind of reading from cache.
>
> Hope this helps someone..
>
> - Simal
>
> On Dec 10, 12:21 am, Simal  wrote:
>
> > Hi all,
>
> > I'm sure this is related to build/run configurations but couldn't
> > figure it out after a long day..
>
> > I'm upgrading from GWT 1.7 to 2.0 and when I try to open up my
> > application in a browser, I get the
> > "GWT module '' needs to be (re)compiled, please run a compile or
> > use the Compile/Browse button in hosted mode" message.
> > I think this message is somehow from GWT 1.7 (since we no longer have
> > a Compile/Browse button in the hosted mode in 2.0).
> > I'm using Eclipse. I changed my build path and run configurations to
> > use the GWT 2.0 jar files. My war/WEB-INF/lib directory contains the
> > GWT 2.0 gwt-servlet.jar as well. I don't quite understand why it's
> > referring to a message from an earlier GWT version.
>
> > Can anyone think of a point I might be missing? Any other
> > configuration I should be looking into? Any specific ordering of the
> > jar files in the build path or run configurations? Any caching that
> > might be happening?
>
> > Thanks in advance,
> > Simal

--

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




Re: IE 6 specific layout problems for DockLayoutPanel

2009-12-30 Thread Jim Douglas
Does IE6 support standards mode properly?  I just used DockLayoutPanel
for the first time today; I noticed this warning:

http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/DockLayoutPanel.html

"This widget will only work in standards mode, which requires that the
HTML page in which it is run have an explicit  declaration."

On Dec 30, 3:01 pm, ryan  wrote:
> To answer my own question:
>
> GWT was taking the right margin of the element and subtracting this
> from the width of it's container and then setting this as the width in
> the inline style. This seems to not be specific to DockLayoutPanel but
> it is specific to IE6.
>
> So for example, our uibinder xml looked something like this
>
> 
>
>            
>                
>            
>            
>              
>            
>         
>
> When viewing the DOM using the IE developer toolbar, TabList's element
> had a right margin of 20px for some reason. So I guess this is why GWT
> would place style="width:180px" on the TabList's element. We fixed it
> by explicitly setting the right margin to 0.
>
> On Dec 30, 4:47 pm, ryan  wrote:
>
>
>
> > When viewing our GWT application in IE 6, we've noticed some weird
> > behavior for the children of a DockLayoutPanel.
>
> > The width of the immediate children of the DockLayoutPanel (the ones
> > in north, south, east, west) gets set explicitly by GWT no matter what
> > you do. This only happens in IE6.
>
> > It's a big problem because it makes our app look like crap in IE 6 and
> > it's completely opaque to the developer. It overrides any width that
> > we set in Java and we can't find where it's happening. Since it's
> > browser specific we figure it must be some kind of compilation rule
> > for IE6.
>
> > Is anyone familiar with this problem? Any tips on overriding this
> > behavior?

--

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




Re: DOMImpl for iPhone: How to do ?

2009-12-30 Thread fvisticot
Hello,
I have worked on the pb and i have made some progress !!!

1. I have overloaded the DOMImpl class. The new overloaded class must
be in a package named com.google.gwt.user.client.impl
2. I have created dedicated events (extending DomEvent)
3. I have created dedicated handlers (extending EventHandler)
4. I have created dedicated HasHandlers
5. In my module file i have added:






6. I have created a new Widget implementing the
public HandlerRegistration addHandler(Handler handler) {
return addDomHandler(handler, Event.getType());
}
7. My application create the new widget and call the
addHandler...

... and it works perfectly...


Hope it can help...

On 31 déc, 01:28, DaveC  wrote:
> It seems I'm trying to do the same 
> thinghttp://groups.google.com/group/google-web-toolkit/browse_thread/threa..
> and have come up against the same barriers.
>
> If I find the answer I'll let you know.
>
> Cheers,
> Dave
>
> On Dec 30, 10:23 pm, fvisticot  wrote:
>
>
>
> > I would like to manage the iPhone touchstart touchmove... events with
> > a clean solution.
> > It seems that i need to create my own DOMImpl for the iPhone and link
> > this new DOMImpl to the iPhone userAgent.
>
> > Do i need to recompile the GWT sources for that ?
> > It seems that i can not override the DOMImplSafari...so it seems that
> > a re-compilation is required...
>
> > I there a document/tuto with the differents mandatory steps to create
> > a new DOMImpl ?
> > Is there a list of class to implement when adding a new DOMImpl ?
> > (DOMImpl, UserAgent.gwt.xml, Creating new DomEvent...)
>
> > Is there allready a DOMImplIphone implementation (GoogleWave is
> > available on the iPhonepearhaps are they using a dedicated
> > implementation) ??
>
> > Fred.

--

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




Re: Convenience callback method

2009-12-30 Thread bhomass
I am trying out the rpc structure given in the seminar. I get an error

20:42:08.171 [ERROR] [rts]
com.jcalc.webclient.client.spreadsheet.rpc.action.GetRecords is not
assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via com.jcalc.webclient.client.rpc.Action)

20:42:08.187 [ERROR] [rts] Deferred binding failed for
'com.jcalc.webclient.client.spreadsheet.rpc.RecordService'; expect
subsequent failures

any one else seen this type of error?

--

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




Re: Global resources in CSS

2009-12-30 Thread Thomas Broyer


On Dec 29, 1:12 pm, swap_i  wrote:
> Hello! I'm new in GWT development and need some help. I use GWT 2.0
> and want define once some constant. For example, I need to define
> mainColor = #rrggbb and want use it in various places, like CSS,
> MyWidget, MyWidget.ui.xml, etc.
>
> I read about CssResource, read about working with CSS docs, but can't
> understand, what rule is the best.
>
> Now my idea realized like this:
>
> GlobalRes.java:
> --- 
> --
> public class GlobalRes {
>
>         static public int gap = 10;
>
>         static public String getGap() {
>                 return gap + "px";
>         }
>
>         static public String getDoubleGap() {
>                 return (gap * 2) + "px";
>         }
>
>         static public String mainColor() {
>                 return "#e6dbcf";
>         }}
>
> --- 
> --
>
> ControlPanel.css:
> --- 
> --
> @eval gap admin.client.GlobalRes.getGap();
> @eval gap2 admin.client.GlobalRes.getDoubleGap();
> @eval mainColor admin.client.GlobalRes.mainColor();
>
> body {
>         padding: gap;
>
> }
>
> .header {
>         background: mainColor;
>         margin-bottom: gap2;}
>
> --- 
> --
>
> I can use variables like 'gap' and 'gap2' in many places. If I prefer,
> I can change this gap in 1 place (GlobalRes.java) and value changed in
> 100 places. But it has bottleneck. First lines in ControlPanel.css I
> must repeat in other CSS-files.
>
> There is my question: I miss some docs and my code is little stupid?
> Anyone can help me?

You can use multiple CSS files in @Source annotations in ClientBundle
interfaces (and src="" on  in UiBinder's ui.xml files), so
you can put your "variables" in a "global.css" that you "load" any
time you need it:
   @Source({ "global.css", "ControlPanel.css" })
   ControlPanelStyle controlPanel();
or
   
  .cls { color: mainColor; }
   

--

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




Re: DOMImpl for iPhone: How to do ?

2009-12-30 Thread DaveC
It seems I'm trying to do the same thing
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e1c6bd5a5d196ecf...
and have come up against the same barriers.

If I find the answer I'll let you know.

Cheers,
Dave

On Dec 30, 10:23 pm, fvisticot  wrote:
> I would like to manage the iPhone touchstart touchmove... events with
> a clean solution.
> It seems that i need to create my own DOMImpl for the iPhone and link
> this new DOMImpl to the iPhone userAgent.
>
> Do i need to recompile the GWT sources for that ?
> It seems that i can not override the DOMImplSafari...so it seems that
> a re-compilation is required...
>
> I there a document/tuto with the differents mandatory steps to create
> a new DOMImpl ?
> Is there a list of class to implement when adding a new DOMImpl ?
> (DOMImpl, UserAgent.gwt.xml, Creating new DomEvent...)
>
> Is there allready a DOMImplIphone implementation (GoogleWave is
> available on the iPhonepearhaps are they using a dedicated
> implementation) ??
>
> Fred.

--

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




Re: Having Trouble Extending MouseEvent...

2009-12-30 Thread DaveC
OK, From what I have since found out is that *all* the native browser
events are stored in a JSNI method in the DOMImpl class here
DOMImpl.eventGetTypeInt(String name)... which is why the exception was
being thrown (there is no "drop", "dragenter", etc events defined).

So in order to add the new html5 events I would need to add my own
DOMImpl class... which I can't seem to do... I appear to be trying to
accomplish the same task as the person posting here
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/560ff832885745b0#

This doesn't appear to be possible (or at least simple or obvious or
documented)...

Its frustrating for me as I've already written the (few lines of)
javascript code to do this - I'm using GWT for a project so really I
need a GWT implementation...

Do any of the GWT experts have any suggestions??

On Dec 30, 4:24 pm, DaveC  wrote:
> I'm probably not doing this the right way but, I've been trying to
> extend MouseEvent to support HTML5 Drag and Drop (drag, dragenter,
> etc. etc.).
>
> I've created a:
>
> Has...Handlers interface
> bunch of Handler classes (DropHandler, DragEnterHandler, etc)
> and a bunch of Event classes that extend MouseEvent (DropEvent,
> DragEnterEvent, etc).
>
> I've also created a DropTarget Widget that implements the
> Has...Handlers interface which accepts a Widget as a param in its
> contructor which then calls setElement() passing in widget.getElement
> ()...
>
> I then add this DropTarget to the RootPanel (for testing purposes) in
> an onModuleLoad.
>
> But I'm getting a low level error ("Something other than an int was
> returned from JSNI method"):
>
> com.google.gwt.dev.shell.HostedModeException: Something other than an
> int was returned from JSNI method
> '@com.google.gwt.user.client.impl.domimpl::eventGetTypeInt(Ljava/lang/
> String;)': JS value of type undefined, expected int
>     at com.google.gwt.dev.shell.JsValueGlue.getIntRange
> (JsValueGlue.java:266)
>     at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144)
>     at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt
> (ModuleSpace.java:242)
>     at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt
> (JavaScriptHost.java:75)
>     at com.google.gwt.user.client.impl.DOMImpl.eventGetTypeInt
> (DOMImpl.java)
>     at com.google.gwt.user.client.Event$.getTypeInt(Event.java:491)
>     at com.google.gwt.user.client.ui.Widget.addDomHandler(Widget.java:
> 184)
>     at
> com.applegreen.gwt.html5.dnd.client.DropTarget.addDragEnterHandler
> (DropTarget.java:44)
>     at com.applegreen.gwt.test.client.DragAndDropTest.onModuleLoad
> (DragAndDropTest.java:46)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 369)
>     at com.google.gwt.dev.shell.OophmSessionHandler.loadModule
> (OophmSessionHandler.java:185)
>     at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
> (BrowserChannelServer.java:380)
>     at com.google.gwt.dev.shell.BrowserChannelServer.run
> (BrowserChannelServer.java:222)
>     at java.lang.Thread.run(Unknown Source)
>
> Can anyone shed any light on what I'm doing wrong or what method I
> should have overidden (I'm not a java programmer btw)??
>
> Cheers,
> Dave

--

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




Re: Unable to find 'stockwatcher.gwt.xml' Error strikes again

2009-12-30 Thread Chris
Hi I recreated from Scratch on another computer and that did the
trick. Thank you for the help

On Dec 30, 8:19 am, Chris Ramsdale  wrote:
> Do you have the same issue when you generate a new Web Application project
> from scratch?
>
>
>
> On Tue, Dec 29, 2009 at 2:15 AM, Chris  wrote:
> > Hi I get a similar problem. I follow the tutorial word for word then
> > when starting the web app after step 3. I get :
>
> > java.lang.NullPointerException: null
> >    at
> > com.google.gwt.sample.stockwatcher.client.StockWatcher_xxx.onModuleLoad
> > (StockWatcher_xx.java:41)
> >    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> >    at java.lang.reflect.Method.invoke(Unknown Source)
> >    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> > 369)
> >    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule
> > (OophmSessionHandler.java:185)
> >    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
> > (BrowserChannelServer.java:380)
> >    at com.google.gwt.dev.shell.BrowserChannelServer.run
> > (BrowserChannelServer.java:222)
> >    at java.lang.Thread.run(Unknown Source)
>
> > On Dec 19, 3:37 pm, AeMaeth  wrote:
> > > Hi. I'm a newb at both GWT and internet related programming. I tried
> > > using the GWT v2.0 and found an error mentioned in the headline. I
> > > checked for solutions in previous versions but none of them worked.
> > > The server starts running nicely and generates the IP for me to use to
> > > see theStockWatcherpage but it shows the start page without the
> > > button or anything much but html and then th Firefox (v3.5.5) stops
> > > working until I stop the server.
> > > Help anyone? I might get a job as a programmer "intern" if I work some
> > > stuff out :)
>
> > > Thanx
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Re: IE 6 specific layout problems for DockLayoutPanel

2009-12-30 Thread ryan
To answer my own question:

GWT was taking the right margin of the element and subtracting this
from the width of it's container and then setting this as the width in
the inline style. This seems to not be specific to DockLayoutPanel but
it is specific to IE6.

So for example, our uibinder xml looked something like this



   
   
   
   
 
   


When viewing the DOM using the IE developer toolbar, TabList's element
had a right margin of 20px for some reason. So I guess this is why GWT
would place style="width:180px" on the TabList's element. We fixed it
by explicitly setting the right margin to 0.

On Dec 30, 4:47 pm, ryan  wrote:
> When viewing our GWT application in IE 6, we've noticed some weird
> behavior for the children of a DockLayoutPanel.
>
> The width of the immediate children of the DockLayoutPanel (the ones
> in north, south, east, west) gets set explicitly by GWT no matter what
> you do. This only happens in IE6.
>
> It's a big problem because it makes our app look like crap in IE 6 and
> it's completely opaque to the developer. It overrides any width that
> we set in Java and we can't find where it's happening. Since it's
> browser specific we figure it must be some kind of compilation rule
> for IE6.
>
> Is anyone familiar with this problem? Any tips on overriding this
> behavior?

--

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




DOMImpl for iPhone: How to do ?

2009-12-30 Thread fvisticot
I would like to manage the iPhone touchstart touchmove... events with
a clean solution.
It seems that i need to create my own DOMImpl for the iPhone and link
this new DOMImpl to the iPhone userAgent.

Do i need to recompile the GWT sources for that ?
It seems that i can not override the DOMImplSafari...so it seems that
a re-compilation is required...

I there a document/tuto with the differents mandatory steps to create
a new DOMImpl ?
Is there a list of class to implement when adding a new DOMImpl ?
(DOMImpl, UserAgent.gwt.xml, Creating new DomEvent...)

Is there allready a DOMImplIphone implementation (GoogleWave is
available on the iPhonepearhaps are they using a dedicated
implementation) ??

Fred.

--

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




Re: Page back color

2009-12-30 Thread leslie
Disregard my post.  Mine appears to be working now, having shut down
everything for the night, restarted, recompiled, reloaded, it's
working I can see that both the stylesheet and the standard theme are
in effect.  It must have been a problem with my browser caching or
something.

--

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




Re: Where does log4j output go?

2009-12-30 Thread leslie
Hi.  I'm using Log4J with GWT 2.0 also.  I'm building with Eclipse.

Inside the properties file, "log4J.properties", I've included a line
similar to the following which directs the output to a specific
location, a specific file:

log4j.appender.A1.File=${user.home}/Documents/log4Joutput.txt

Note that you will want to be sure to update this setting, in addition
to probably changing the sensitivity of the logger (DEBUG vs ERROR)
when you deploy to your production server.

On Dec 30, 12:54 am, Paul Grenyer  wrote:
> Hi All
>
> I know this was the topic of another thread recently, but I can't find
> it in the archives, so please accept my apologies.
>
> Where does the log4j output go in hosted mode for GWT 2.0? I seem to
> get some output in the console window only if an exception is thrown.
>
> --
> Thanks
> Paul
>
> Paul Grenyer
> e: paul.gren...@gmail.com
> b: paulgrenyer.blogspot.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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: MVP Article... Source Code?

2009-12-30 Thread Yaakov Chaikin
Oops! Never mind! I see it IS there now.

Thanks for posting it.

Yaakov.

On Wed, Dec 30, 2009 at 4:23 PM, Yaakov Chaikin
 wrote:
> Chris,
>
> I appreciate the link to the official source code... Where is that
> link (and others similar to that one) is/will be? I looked through the
> GWT site and couldn't find anything.
>
> If it's not there, it would probably make sense to put the link right
> in the article itself.
>
> Just a suggestion.
>
> Thanks,
> Yaakov.
>
> On Wed, Dec 30, 2009 at 2:55 PM, Alejandro D. Garin  wrote:
>> Thanks Chris, I didn't know about the availability of the official source
>> code so I will remove my project because that make no sense. By the way, the
>> articule was very usefull.
>>
>> On Wed, Dec 30, 2009 at 4:43 PM, Chris Ramsdale 
>> wrote:
>>>
>>> While I see that someone has already found it, I just wanted to let
>>> everyone know that it's officially there.
>>>
>>> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>>>
>>> We're looking to put together parts 2 and 3 shortly. So far I have UI
>>> Binder and Code Splitting integration as topics of interest. Let us know
>>> what else would be of help.
>>> - Chris
>>>
>>> On Tue, Dec 29, 2009 at 1:00 PM, jpnet  wrote:

 I really like this article:

 http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html

 However, it's almost useless without the entire source package. Are
 there any plans to post the source code?

 Thanks,

 JP

 --

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


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

--

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




Re: MVP Article... Source Code?

2009-12-30 Thread Yaakov Chaikin
Chris,

I appreciate the link to the official source code... Where is that
link (and others similar to that one) is/will be? I looked through the
GWT site and couldn't find anything.

If it's not there, it would probably make sense to put the link right
in the article itself.

Just a suggestion.

Thanks,
Yaakov.

On Wed, Dec 30, 2009 at 2:55 PM, Alejandro D. Garin  wrote:
> Thanks Chris, I didn't know about the availability of the official source
> code so I will remove my project because that make no sense. By the way, the
> articule was very usefull.
>
> On Wed, Dec 30, 2009 at 4:43 PM, Chris Ramsdale 
> wrote:
>>
>> While I see that someone has already found it, I just wanted to let
>> everyone know that it's officially there.
>>
>> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>>
>> We're looking to put together parts 2 and 3 shortly. So far I have UI
>> Binder and Code Splitting integration as topics of interest. Let us know
>> what else would be of help.
>> - Chris
>>
>> On Tue, Dec 29, 2009 at 1:00 PM, jpnet  wrote:
>>>
>>> I really like this article:
>>>
>>> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>>>
>>> However, it's almost useless without the entire source package. Are
>>> there any plans to post the source code?
>>>
>>> Thanks,
>>>
>>> JP
>>>
>>> --
>>>
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-tool...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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




Re: Bug in DateTimeFormat GWT

2009-12-30 Thread Chris Ramsdale
What you are describing sounds pretty straight forward, but would you mind
replying with a specific code snippet so that we can try reproducing the
issue?

- Chris

On Tue, Dec 29, 2009 at 1:43 PM, Chris wrote:

> Clearly no ideas... Can i raise this somewhere?
>
> On Dec 15, 4:29 pm, Chris  wrote:
> > Hi All
> >
> > Although the DateTimeFormat seems to work fine with most browsers,
> > using the hosted/development mode, it does not handle Eras properly.
> >
> > Using GWT 1.x or GWT 2.0 I get the same behaviour:
> >
> > In Firefox, normally compiled etc. shows BC fine.
> > In Development in Firefox, shows AD instead of BC
> >
> > Any ideas if this is just me overlooking something? or a real bug?
> > Cheers
> > Chris
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: MVP Article... Source Code?

2009-12-30 Thread Alejandro D. Garin
Thanks Chris, I didn't know about the availability of the official source
code so I will remove my project because that make no sense. By the way, the
articule was very usefull.

On Wed, Dec 30, 2009 at 4:43 PM, Chris Ramsdale wrote:

> While I see that someone has already found it, I just wanted to let
> everyone know that it's officially there.
>
> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>
> We're looking to put together parts 2 and 3 shortly. So far I have UI
> Binder and Code Splitting integration as topics of interest. Let us know
> what else would be of help.
>
> - Chris
>
> On Tue, Dec 29, 2009 at 1:00 PM, jpnet  wrote:
>
>> I really like this article:
>>
>> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>>
>> However, it's almost useless without the entire source package. Are
>> there any plans to post the source code?
>>
>> Thanks,
>>
>> JP
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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




Re: MVP Article... Source Code?

2009-12-30 Thread Chris Ramsdale
While I see that someone has already found it, I just wanted to let everyone
know that it's officially there.

http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html

We're looking to put together parts 2 and 3 shortly. So far I have UI Binder
and Code Splitting integration as topics of interest. Let us know what else
would be of help.

- Chris

On Tue, Dec 29, 2009 at 1:00 PM, jpnet  wrote:

> I really like this article:
> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>
> However, it's almost useless without the entire source package. Are
> there any plans to post the source code?
>
> Thanks,
>
> JP
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: MVP Article... Source Code?

2009-12-30 Thread Alejandro D. Garin
cool ! thanks.

On Wed, Dec 30, 2009 at 4:32 PM, mbracken  wrote:

> Looks like the official sample project source has now been posted:
> http://code.google.com/webtoolkit/doc/latest/tutorial/projects/Contacts.zip
>
> There's a link near the top of the article.
>
> On Dec 30, 2:30 pm, "Alejandro D. Garin"  wrote:
> > Hi,
> >
> > The code is almost in the tutorial, anyway I have completed the remaining
> > source code and uploaded to a google code project just for fun. This is
> > unofficial.
> >
> > http://code.google.com/p/gwt-mvp-architecture-sample/
> >
> > Regards.
> > Alejandro.
> >
> > On Tue, Dec 29, 2009 at 3:00 PM, jpnet  wrote:
> > > I really like this article:
> > >http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur.
> ..
> >
> > > However, it's almost useless without the entire source package. Are
> > > there any plans to post the source code?
> >
> > > Thanks,
> >
> > > JP
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: MVP Article... Source Code?

2009-12-30 Thread mbracken
Looks like the official sample project source has now been posted:
http://code.google.com/webtoolkit/doc/latest/tutorial/projects/Contacts.zip

There's a link near the top of the article.

On Dec 30, 2:30 pm, "Alejandro D. Garin"  wrote:
> Hi,
>
> The code is almost in the tutorial, anyway I have completed the remaining
> source code and uploaded to a google code project just for fun. This is
> unofficial.
>
> http://code.google.com/p/gwt-mvp-architecture-sample/
>
> Regards.
> Alejandro.
>
> On Tue, Dec 29, 2009 at 3:00 PM, jpnet  wrote:
> > I really like this article:
> >http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur...
>
> > However, it's almost useless without the entire source package. Are
> > there any plans to post the source code?
>
> > Thanks,
>
> > JP
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Re: MVP Article... Source Code?

2009-12-30 Thread Alejandro D. Garin
Hi,

The code is almost in the tutorial, anyway I have completed the remaining
source code and uploaded to a google code project just for fun. This is
unofficial.

http://code.google.com/p/gwt-mvp-architecture-sample/

Regards.
Alejandro.

On Tue, Dec 29, 2009 at 3:00 PM, jpnet  wrote:

> I really like this article:
> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>
> However, it's almost useless without the entire source package. Are
> there any plans to post the source code?
>
> Thanks,
>
> JP
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: Pressing the enter key in the SuggestBox popup fire onKeyUp event! How to disable this?

2009-12-30 Thread Michael W
Forget to attach url:
http://www.holidayinn.com/hotels/us/en/home

See whether it is what you need.

On Dec 23, 11:49 am, Michael W  wrote:
> Can you check following whether it is what you need?
> If yes, I will post our solution here.
>
> On Dec 22, 6:35 am, "ss.require"  wrote:
>
> > Hi there!
> > If I select an option in the SuggestBox popup by pressing the enter
> > key then onKeyUp event fire. But I don't want that it happens because
> > I already handle pressing the enter on the textbox by executing
> > another code. My code below:
>
> > suggestBox.addSelectionHandler(new SelectionHandler() {
> >                         public void onSelection(SelectionEvent 
> > arg0) {
> >                                           //Here my code
> >                         }
> >                 });
> > suggestBox.getTextBox().addKeyUpHandler(new KeyUpHandler() {
> >                         public void onKeyUp(KeyUpEvent arg0) {
> >                                      if (arg0.getNativeKeyCode() == 13) {
> >                                                     //Here another my
> > code
> >                                 }
> >                         }
> >                 });
>
> > How to disable this or what is the workaround?

--

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




Re: New layouts not playing nicely with Maps

2009-12-30 Thread Dave
Eric,
I have the same problem as stated in 1st post above. I have read other
post and this problem seem to be persisted for sometime now as shown
is this earlier post
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/657ed9bb2e2e9011/794322db35f85adc?lnk=gst&q=Guillem#794322db35f85adc.
Rather than using timer hacks, I would have felt that this issue would
have been resolved by now. Anyway, I have tried several of the
techniques suggested in both post and to no avail. In the code below I
have placed 3 maps on a StackPanel. The map that is loaded on the 1st
sub-menu in the  stack panel is rendered properly but the other 2 sub-
menus in the stack panel has a 'grey area' for most of the map and the
map is not properly centered. The maps show up properly when I use a
Vertical Panel instead of a StackPanel. I don't want to use a Vertical
Panel I have placed the code below in an Ext-GWT widget. Could give me
some insights as to how fix this? I have already tried the
"checkResizeAndCenter()" function.

private void location()
{
//Function for "About Us -> Locations"

StackPanel spLocationMap = new StackPanel();
VerticalPanel vpLocationMap = new VerticalPanel();
Label lblHeading = new Label("Map of Campus Locations");

lblHeading.addStyleName("locationHeading");
vpLocationMap.add(lblHeading);
vpLocationMap.setSize("100%", "100%");
spLocationMap.setSize("100%", "100%");

spLocationMap.add(getMap(LatLng.newInstance(18.400754, 
-77.364009),
"Campus 1"), "Campus 1");
spLocationMap.add(getMap(LatLng.newInstance(18.456352, 
-77.396647),
"Campus 2"), "Campus 2");
spLocationMap.add(getMap(LatLng.newInstance(18.433755, 
-77.206820),
"Campus 3"), "Campus 3");

spLocationMap.addStyleName("spLocationHeader");

vpLocationMap.add(spLocationMap);
vpLocationMap.addStyleName("verticalPanelLocation");

center.removeAll();
center.add(vpLocationMap);
center.layout();
}

private MapWidget getMap(final LatLng point, final String campus)
{
Marker marker = new Marker(point);
final MapWidget map = new MapWidget(point, 15);
map.setSize("700", "488");
map.setScrollWheelZoomEnabled(true);
map.setDoubleClickZoom(true);
map.addOverlay(marker);
map.addControl(new SmallMapControl());
map.addControl(new MapTypeControl());
map.getInfoWindow().open(map.getCenter(), new InfoWindowContent
(campus));
marker.addMarkerClickHandler(new MarkerClickHandler()
{
@Override
public void onClick(MarkerClickEvent event)
{
InfoWindow info = map.getInfoWindow();
info.open(point, new InfoWindowContent(campus));
}
});
return map;
}

Jones

--

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




Problem with the datebox : handling to value change events when setting a format

2009-12-30 Thread Youen
Hi,

I've just detecting a problem with the datebox widget with GWT 2.0,
the widget works well but when I set a format to the datebox two value
change events are handled by the datebox.

Does anyone 's got a solution or know that is a bug already known by
the GWT team ?

(Except the solution that need to write more code in using
db.getDatePicker().addValueChangeHandler +  db.getTextBox
().addValueChangeHandler)

Regards,


A small piece of code to see the behaviour :

public static final Format dateboxFormat=new 
DateBox.DefaultFormat
(DateTimeFormat.getFormat("dd/MM/"));

[...]

DateBox db=new DateBox();
db.setFormat(dateboxFormat);
fp.add(db);

// After selecting a date on the datepicker popup
db.getDatePicker().addValueChangeHandler(new
ValueChangeHandler() {

@Override
public void 
onValueChange(ValueChangeEvent event) {
Window.alert("datepicker");

}
});
// After editing manually the date in the textbox
db.getTextBox().addValueChangeHandler(new 
ValueChangeHandler
() {

@Override
public void 
onValueChange(ValueChangeEvent event) {
Window.alert("text");

}
});
// After selecting a date on the datepicker popup OR 
editing
manually the date in the textbox
// Two events are triggered for one date change when a 
setFormat
(...) is set to a datebox.
db.addValueChangeHandler(new ValueChangeHandler() 
{

@Override
public void 
onValueChange(ValueChangeEvent event) {
Window.alert("datebox"); //Got it twice 
for one date editing

}
});

--

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




Re: Can't load the same module twice???

2009-12-30 Thread lineman78
I am considering 2 usecases.  The first being an integration with the
Liferay Java portal where we would essentially have many portlets all
with the same portlet wrapper all using different deferred binding.
For instance, I would write one module to wrap all of our portlets and
write an ant script to change the module.gwt.xml's replace-with line
and recompile to produce all of our components.  We essentially have 2
possible ways of displaying our portlets.  One is a custom portlet
with no user management completely written in GWT, and the other is
Liferay (JSR Portlet spec).  I would like to have them all use the
same code with minimal wrapper work, which is why I decided on the
approach I just explained.  Also, I have been contemplating a way to
write a pure GWT portal implementation that would be completely
plugable.  From the (limited) research I have done, I cannot find an
easy way to make GWT pluggable without seperating it into several
modules, and I could see a case where someone would like to put the
same portlet on the page twice with different data/configuration.  I
have been working on a way to make this work, and I believe I have.  I
think this could also be modified for all the work to be done as a
Linker, but I am not familiar enough with them to do that yet,

private static native JavaScriptObject fixWnd()/*-{
orig_wnd = $wnd;
while($wnd.parent != $wnd)
  $wnd = $wnd.parent;
if (orig_wnd == $wnd)
  return null;
$doc = $wnd.document;
return orig_wnd;
  }-*/;

  private static final JavaScriptObject originalWindow = fixWnd();

  public static native String getQueryParam(String queryParam)
  /*-{
return @com.gwt.client.GWTClient::originalWindow.gup(queryParam);
  }-*/;

  public void onModuleLoad()
  {
if (originalWindow == null)
  throw new RuntimeException("not meant to be run as a
standalone");
Alerter alerter = ((Alerter) GWT.create(Alerter.class));
RootPanel.get("container_" + getQueryParam("uuid")).add
(alerter.getWidget());
  }

/tester/GWTTester.html


  

index

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];
}

  
  

  


/index.html


  

index
  
  






  


On Dec 30, 9:39 am, Jason Essington 
wrote:
> I can't think of a single usecase where it would be appropriate to load a 
> module twice ... It would be effectively the same as loading YUI, or Dojo, or 
> jQuery twice, Once it is there the first time there's no need to load it 
> again, the code is already there.
>
> If you are simply trying to place a panel in multiple places on the page, 
> that can be done from the single invocation of your module, look for the 
> container elements in the DOM and add your panel (widgets)
>
> RootPanel.get("contianer1").add(myStuff); 
> RootPanel.get("container2").add(anotherInstanceOfMyStuff);
>
> -jason
>
> On Dec 29, 2009, at 6:39 PM, Ian Bambury wrote:
>
> > Why would you want to run it twice? What effect are you trying to produce?
>
> > Ian
>
> >http://examples.roughian.com
>
> > 2009/12/30 lineman78 
> > Can someone please tell me if it is possible to load the same module
> > twice.  If so, how?  I have tried including the script tag twice,
> > which used to work in older versions of gwt, but no longer works.  I
> > was thinking that once it is loaded you could call the onModuleLoad
> > function manually, but cannot find how that would work.  Another thing
> > I noticed is that if you do include the script tag twice, it writes
> > the code to the dom twice, but it is only executed once.  If it is by
> > design that you can only run a module once by including the script
> > tag, maybe this ought to be prevented.  I also tried using the cross
> > site linker, which is what i believe i used before to get this to
> > work.
>
> > 
> >        
> >        
>
> >        
> >        
>
> >        
>
> >        
> >                
> >        
>
> >        
> >                
> >                
> >        
>
> >        
> >                
> >                
> >        
>
> >        
> >                
> >                
> >        
>
> >        
> > 
>
> > 
> >  
> >    
> >    index
> >  
> >  
> >        
> >                

Re: Can't inherit com.google.gwt.dev.util.collect

2009-12-30 Thread Chris Ramsdale
com.google.gwt.dev.util.collect is not meant to be used on the client side
(hence the lack of a .gwt.xml file). As you discovered, you should
use the standard JRE HashMap, and let GWT provide the associated JS
implementation at compile time.

- Chris

On Mon, Dec 28, 2009 at 2:07 PM, forewar  wrote:

> Oh, I`ve just changed my library import. Imported java.util.HashMap
> instead of com.google.gwt.dev.util.collect.HashMap and I works now.
> But I still dont understand what`s wrong with gwt`s HashMap.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: Can't load the same module twice???

2009-12-30 Thread Jason Essington
I can't think of a single usecase where it would be appropriate to load a 
module twice ... It would be effectively the same as loading YUI, or Dojo, or 
jQuery twice, Once it is there the first time there's no need to load it again, 
the code is already there.

If you are simply trying to place a panel in multiple places on the page, that 
can be done from the single invocation of your module, look for the container 
elements in the DOM and add your panel (widgets)

RootPanel.get("contianer1").add(myStuff); 
RootPanel.get("container2").add(anotherInstanceOfMyStuff);

-jason

On Dec 29, 2009, at 6:39 PM, Ian Bambury wrote:

> Why would you want to run it twice? What effect are you trying to produce?
> 
> Ian
> 
> http://examples.roughian.com
> 
> 2009/12/30 lineman78 
> Can someone please tell me if it is possible to load the same module
> twice.  If so, how?  I have tried including the script tag twice,
> which used to work in older versions of gwt, but no longer works.  I
> was thinking that once it is loaded you could call the onModuleLoad
> function manually, but cannot find how that would work.  Another thing
> I noticed is that if you do include the script tag twice, it writes
> the code to the dom twice, but it is only executed once.  If it is by
> design that you can only run a module once by including the script
> tag, maybe this ought to be prevented.  I also tried using the cross
> site linker, which is what i believe i used before to get this to
> work.
> 
> 
> >
>
> 
>
>
> 
>
> 
>
>
>
> 
>
>
>
>
> 
>
>
>
>
> 
>
>
>
>
> 
>
> 
> 
> 
>  
>
>index
>  
>  
>
>

Re: Possible bug with ImageResource

2009-12-30 Thread Daniel
The image in question was being used in an image hover.  I merged the
image with the hover image (as recommended in this tutorial here:
http://www.kyleschaeffer.com/best-practices/pure-css-image-hover/),
and GWT was able to load it into the clientbundle.

On Dec 30, 2:16 am, Daniel  wrote:
> Hi,
>
> It seems that GWT has problems loading certain png's into a
> ClientBundle.  I will happily pass the image along to any other dev
> who wants to test it.
>
> The error in full:
>
> Compiling module org.codingventures.uiwithtest.UiWithTest
>    [ERROR] Errors in 'generated://9765C43330D8F23745822A0D5F0695CC/org/
> codingventures/uiwithtest/client/UiWithTest_BinderImpl.java'
>       [ERROR]  Internal compiler error
> java.lang.NullPointerException
>         at com.google.gwt.dev.javac.CompiledClass.(CompiledClass.java:
> 83)
>         at com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit
> (JdtCompiler.java:203)
>         at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
> (TypeDeclaration.java:1198)
>         at
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
> (CompilationUnitDeclaration.java:687)
>         at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process
> (JdtCompiler.java:157)
>         at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
> 444)
>         at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
> 466)
>         at com.google.gwt.dev.javac.CompilationStateBuilder
> $CompileMoreLater.compile(CompilationStateBuilder.java:141)
>         at
> com.google.gwt.dev.javac.CompilationStateBuilder.doBuildGeneratedTypes
> (CompilationStateBuilder.java:325)
>         at com.google.gwt.dev.javac.CompilationStateBuilder
> $CompileMoreLater.addGeneratedTypes(CompilationStateBuilder.java:126)
>         at
> com.google.gwt.dev.javac.CompilationState.addGeneratedCompilationUnits
> (CompilationState.java:86)
>         at com.google.gwt.dev.javac.StandardGeneratorContext.finish
> (StandardGeneratorContext.java:348)
>         at
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds
> (WebModeCompilerFrontEnd.java:129)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.process(AbstractCompiler.java:200)
>         at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
> 444)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:123)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:234)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
> $200(AbstractCompiler.java:109)
>         at com.google.gwt.dev.jdt.AbstractCompiler.compile
> (AbstractCompiler.java:522)
>         at
> com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations
> (BasicWebModeCompiler.java:112)
>         at
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations
> (WebModeCompilerFrontEnd.java:47)
>         at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
> (JavaToJavaScriptCompiler.java:421)
>         at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile
> (JavaScriptCompiler.java:32)
>         at com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
>         at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:201)
>         at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
>         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 87)
>         at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
> (CompileTaskRunner.java:81)
>         at com.google.gwt.dev.Compiler.main(Compiler.java:159)
>
> [ERROR] Unexpected
> java.lang.NullPointerException
>         at com.google.gwt.dev.javac.CompiledClass.(CompiledClass.java:
> 83)
>         at com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit
> (JdtCompiler.java:203)
>         at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
> (TypeDeclaration.java:1198)
>         at
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
> (CompilationUnitDeclaration.java:687)
>         at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process
> (JdtCompiler.java:157)
>         at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
> 444)
>         at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
> 466)
>         at com.google.gwt.dev.javac.CompilationStateBuilder
> $CompileMoreLater.compile(CompilationStateBuilder.java:141)
>         at
> com.google.gwt.dev.javac.CompilationStateBuilder.doBuildGeneratedTypes
> (CompilationStateBuilder.java:325)
>         at com.google.gwt.dev.javac.CompilationStateBuilder
> $CompileMoreLater.addGeneratedTypes(CompilationStateBuilder.java:126)
>         at
> com.google.gwt.dev.javac.CompilationState.addGeneratedCompilationUnits
> (Compila

Having Trouble Extending MouseEvent...

2009-12-30 Thread DaveC
I'm probably not doing this the right way but, I've been trying to
extend MouseEvent to support HTML5 Drag and Drop (drag, dragenter,
etc. etc.).

I've created a:

Has...Handlers interface
bunch of Handler classes (DropHandler, DragEnterHandler, etc)
and a bunch of Event classes that extend MouseEvent (DropEvent,
DragEnterEvent, etc).

I've also created a DropTarget Widget that implements the
Has...Handlers interface which accepts a Widget as a param in its
contructor which then calls setElement() passing in widget.getElement
()...

I then add this DropTarget to the RootPanel (for testing purposes) in
an onModuleLoad.

But I'm getting a low level error ("Something other than an int was
returned from JSNI method"):

com.google.gwt.dev.shell.HostedModeException: Something other than an
int was returned from JSNI method
'@com.google.gwt.user.client.impl.DOMImpl::eventGetTypeInt(Ljava/lang/
String;)': JS value of type undefined, expected int
at com.google.gwt.dev.shell.JsValueGlue.getIntRange
(JsValueGlue.java:266)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt
(ModuleSpace.java:242)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt
(JavaScriptHost.java:75)
at com.google.gwt.user.client.impl.DOMImpl.eventGetTypeInt
(DOMImpl.java)
at com.google.gwt.user.client.Event$.getTypeInt(Event.java:491)
at com.google.gwt.user.client.ui.Widget.addDomHandler(Widget.java:
184)
at
com.applegreen.gwt.html5.dnd.client.DropTarget.addDragEnterHandler
(DropTarget.java:44)
at com.applegreen.gwt.test.client.DragAndDropTest.onModuleLoad
(DragAndDropTest.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule
(OophmSessionHandler.java:185)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:380)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Unknown Source)

Can anyone shed any light on what I'm doing wrong or what method I
should have overidden (I'm not a java programmer btw)??

Cheers,
Dave

--

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




Re: Unable to find 'stockwatcher.gwt.xml' Error strikes again

2009-12-30 Thread Chris Ramsdale
Do you have the same issue when you generate a new Web Application project
from scratch?

On Tue, Dec 29, 2009 at 2:15 AM, Chris  wrote:

> Hi I get a similar problem. I follow the tutorial word for word then
> when starting the web app after step 3. I get :
>
> java.lang.NullPointerException: null
>at
> com.google.gwt.sample.stockwatcher.client.StockWatcher_xxx.onModuleLoad
> (StockWatcher_xx.java:41)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>at java.lang.reflect.Method.invoke(Unknown Source)
>at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 369)
>at com.google.gwt.dev.shell.OophmSessionHandler.loadModule
> (OophmSessionHandler.java:185)
>at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
> (BrowserChannelServer.java:380)
>at com.google.gwt.dev.shell.BrowserChannelServer.run
> (BrowserChannelServer.java:222)
>at java.lang.Thread.run(Unknown Source)
>
> On Dec 19, 3:37 pm, AeMaeth  wrote:
> > Hi. I'm a newb at both GWT and internet related programming. I tried
> > using the GWT v2.0 and found an error mentioned in the headline. I
> > checked for solutions in previous versions but none of them worked.
> > The server starts running nicely and generates the IP for me to use to
> > see theStockWatcherpage but it shows the start page without the
> > button or anything much but html and then th Firefox (v3.5.5) stops
> > working until I stop the server.
> > Help anyone? I might get a job as a programmer "intern" if I work some
> > stuff out :)
> >
> > Thanx
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: DisclosurePanel: retrieving the height of the content

2009-12-30 Thread mbracken
When handling the OpenEvent, try putting the check for the content's
height inside a DeferredCommand.  This should give the browser a
chance to fully render the content and establish its new height.

On Dec 29, 5:09 pm, babarorhum  wrote:
> Hello,
> I am using the DisclosurePanel as described in the GWT example
> available from the official site (http://gwt.google.com/samples/
> Showcase/Showcase.html#CwDisclosurePanel) and would like to receive a
> notification when the panel has been opened in order to fetch the new
> height of the disclosure panel.
>
> However, I can only see two handlers available from DisclosurePanel:
> one for Open and the second one for Close. From the open handlers, i
> get the previous height of the panel, and of course the close handles
> gives me the actual height i am looking for, but too late :)
>
> Do you have any suggestion for me or pointers?
> Thanks in advance !
>
> Babarorhum

--

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




Re: DropZap web demo built using GWT

2009-12-30 Thread amich...@gmail.com
On Dec 30, 10:10 am, ylmz  wrote:
> He told me that he did not understand how exactly he destroys the
> blocks. he said that some times blocks are being destroyed in totally
> unrelated rows and sometimes strange rectangles appear (multiple
> collisions in different rows looks like rectangles.). but he can still
> finis the demo :)

I'm thinking of creating an interactive tutorial.  You would be asked
to select the drop column that would have a certain result.

Another way to reduce confusion is to perhaps have the lasers grow
gradually from the square firing them (as an option) so that it is
more obvious what is going on.

Amir

>
> On Dec 29, 5:37 pm, "amich...@gmail.com"  wrote:
>
>
>
> > On Dec 29, 8:47 am, ylmz  wrote:
>
> > > I kind of get the idea, but my coworker told me that he didn't get the
> > > game. I think a tutorial would be great. (like the one in metal slug
> > > would be great (they have a 15 sec demo on "insert coin" screen)).
>
> > I am curious as to what exactly is confusing your coworker.  Could you
> > ask him/her?
>
> > Amir
>
> > > On Dec 29, 3:07 am, "amich...@gmail.com"  wrote:
>
> > > > On Dec 28, 8:04 pm, spierce7  wrote:
>
> > > > > nice game! I found it pretty difficult though. I couldn't get halfway
> > > > > through the second level.
>
> > > > Is there some aspect of the game that is confusing?
>
> > > > Amir
>
> > > > > On Dec 28, 7:35 pm, "amich...@gmail.com"  wrote:
>
> > > > > > Hello,
>
> > > > > > Check it out:
>
> > > > > >http://dropzap.appspot.com
>
> > > > > > Amir

--

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




Re: GWT 2/Eclipse Project References

2009-12-30 Thread Matt
Google Plugin for Eclipse 3.5, version 1.2.v200912062003 running
Google Web Toolkit SDK 2.0.0.v2000912062003

On Dec 29, 1:11 pm, Murat Doner  wrote:
>  Which plug-in do you use?
>
>
>
> On Fri, Dec 11, 2009 at 1:49 PM, Graham  wrote:
> > I've successfully upgraded to GWT 2.0 using the GWT Eclipse Plugin.
> > All seems well, with one exception. I write all of my servlets in a
> > seperate project, which worked under well under 1.* by simply adding
> > the project to the build path.
>
> > Unfortunately after moving to GWT 2.0 the project is being ignored at
> > run time, and the servlets are not found (although the project appears
> > in the "Classpath" tab in my run configuration). Is there anyway to
> > specify other projects to be included in the classpath?
>
> > If I export my servlets to a JAR file and drop them into the WEB-INF/
> > lib directory it works, but it is a bit clunky, especially as the
> > servlets are modified frequently!
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.- 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Cannot install GWT Eclipse plug-in

2009-12-30 Thread Jon Vaughan
I had the same problem, on Win 7 64 bit, and adding the galileo update
site (http://download.eclipse.org/releases/galileo) fixed it for me
too.

On Dec 24, 4:59 pm, Nikhil  wrote:
> I was stumped with the same problem. I was able to fix it by 
> addinghttp://download.eclipse.org/releases/galileoto the list of available
> sites and keeping the "Contact all available sites.." checked.
>
> On Dec 11, 12:20 am, robert_hancock  wrote:
>
> > I have the same issue with 3.5.1.  "Contact
> > Other Update Sites for Needed Software" is checked.
>
> > This is the error message I receive:
>
> > Cannot complete the install because one or more required items could
> > not be found.
> >   Software being installed: Google Plugin for Eclipse 3.5
> > 1.2.0.v200912062003
> > (com.google.gdt.eclipse.suite.e35.feature.feature.group
> > 1.2.0.v200912062003)
> >   Missing requirement: Google Plugin for Eclipse 3.5
> > 1.2.0.v200912062003
> > (com.google.gdt.eclipse.suite.e35.feature.feature.group
> > 1.2.0.v200912062003)requires'org.eclipse.wst.css.core 0.0.0' but it
> > could not be found
>
> > Does someone have the Eclipse site that we can add to the list?
>
> > On Dec 10, 11:09 am, Rajeev Dayal  wrote:> There have 
> > been reports of the 64-bit versions of Eclipse not having the
> > > default update sites (such as the Galileo Update Site) included. Since the
> > > Google Plugin for Eclipse depends on WST, Eclipse needs to hit the Galileo
> > > update site during installation.
>
> > > Try Eclipse 3.5.1 and see if you run into the same issue. Ensure that when
> > > you're installing the Google Plugin for Eclipse, the option to "Contact
> > > Other Update Sites for Needed Software" is checked.
>
> > > On Thu, Dec 10, 2009 at 7:00 AM, Nixarn  wrote:
> > > > Happens to me too :(
>
> > > > I'm on Windows 7 64bit, got a 32bit version of Eclipse 2.5 for Java
> > > > (Not EE). Fresh eclipse install and havn't had in any older version of
> > > > GWT.
>
> > > > On Oct 29, 3:01 am, "Gamer_Z."  wrote:
> > > > > I cannot install the GWT plug-in on Eclipse (3.5/Galileo).  I have re-
> > > > > installed Eclipse several times.  I have also copied Eclipse on a
> > > > > flash drive to a friend's computer and the plug-in installed fine
> > > > > there, so it is not a problem with Eclipse.  When I get to step four
> > > > > ofhttp://code.google.com/eclipse/docs/install-eclipse-3.5.html, I get
> > > > > the message "The operation cannot be completed.  See the details."
> > > > > The "Details" are below:
>
> > > > > Cannot complete the install because one or more required items could
> > > > > not be found.
> > > > >   Software being installed: Google Web Toolkit SDK 1.7.1
> > > > > 1.7.1.v200909221731
> > > > > (com.google.gwt.eclipse.sdkbundle.e35.feature.feature.group
> > > > > 1.7.1.v200909221731)
> > > > >   Missing requirement: Google Web Toolkit Plugin 1.1.2.v200910130758
> > > > > (com.google.gwt.eclipse.core 1.1.2.v200910130758)requires'bundle
> > > > >org.eclipse.wst.sse.core0.0.0' but it could not be found
> > > > >   Missing requirement: Google Web Toolkit Plugin 1.1.2.v200910131704
> > > > > (com.google.gwt.eclipse.core 1.1.2.v200910131704)requires'bundle
> > > > >org.eclipse.wst.sse.core0.0.0' but it could not be found
> > > > >   Cannot satisfy dependency:
> > > > >     From: Google Web Toolkit SDK 1.7.1 1.7.1.v200909221731
> > > > > (com.google.gwt.eclipse.sdkbundle.e35.feature.feature.group
> > > > > 1.7.1.v200909221731)
> > > > >     To: com.google.gwt.eclipse.sdkbundle.win32 [1.7.1.v200909221731]
> > > > >   Cannot satisfy dependency:
> > > > >     From: Google Web Toolkit SDK for Win32 1.7.1.v200909221731
> > > > > (com.google.gwt.eclipse.sdkbundle.win32 1.7.1.v200909221731)
> > > > >     To:bundlecom.google.gwt.eclipse.core 0.0.0
>
> > > > --
>
> > > > You received this message because you are subscribed to the Google 
> > > > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to 
> > > > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Re: DropZap web demo built using GWT

2009-12-30 Thread ylmz
He told me that he did not understand how exactly he destroys the
blocks. he said that some times blocks are being destroyed in totally
unrelated rows and sometimes strange rectangles appear (multiple
collisions in different rows looks like rectangles.). but he can still
finis the demo :)

On Dec 29, 5:37 pm, "amich...@gmail.com"  wrote:
> On Dec 29, 8:47 am, ylmz  wrote:
>
> > I kind of get the idea, but my coworker told me that he didn't get the
> > game. I think a tutorial would be great. (like the one in metal slug
> > would be great (they have a 15 sec demo on "insert coin" screen)).
>
> I am curious as to what exactly is confusing your coworker.  Could you
> ask him/her?
>
> Amir
>
>
>
>
>
> > On Dec 29, 3:07 am, "amich...@gmail.com"  wrote:
>
> > > On Dec 28, 8:04 pm, spierce7  wrote:
>
> > > > nice game! I found it pretty difficult though. I couldn't get halfway
> > > > through the second level.
>
> > > Is there some aspect of the game that is confusing?
>
> > > Amir
>
> > > > On Dec 28, 7:35 pm, "amich...@gmail.com"  wrote:
>
> > > > > Hello,
>
> > > > > Check it out:
>
> > > > >http://dropzap.appspot.com
>
> > > > > Amir

--

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




Re: number format

2009-12-30 Thread mariyan nenchev
Hi,
may be you should look at the NumberFormat in gwt.
But it you may also write a simple native method that do this:
Here:
public static native String toFixed(double number, int decimalPlaces)
/*-{ return number.toFixed(decimalPlaces); }-*/;

So if you call:
toFixed(10.10154564654654, 2) => 10.10

Happy New Year :)

On Wed, Dec 30, 2009 at 2:48 PM, jon...@gmail.com  wrote:

> Hi there
> I need to format a value double
> example: 10.10154564654654
> I need to format this value to 10.10 for example
>
> How 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: number format

2009-12-30 Thread Arthur Kalmenson
This is probably what you're looking for:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/i18n/client/NumberFormat.html

--
Arthur Kalmenson



On Wed, Dec 30, 2009 at 7:48 AM, jon...@gmail.com  wrote:
> Hi there
> I need to format a value double
> example: 10.10154564654654
> I need to format this value to 10.10 for example
>
> How 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: GWT Plugin for Eclipse 3.6

2009-12-30 Thread Miguel Méndez
We have started looking at what would be required to support Eclipse 3.6.
 We will have support for 3.6 once it officially ships.

On Tue, Dec 29, 2009 at 8:58 AM, RadhikaSunil wrote:

> Is there any plans to do it soon ?
>
> On Dec 18, 6:34 pm, Rajeev Dayal  wrote:
> > No, there is not. We have not tested the plugin against Eclipse 3.6 as
> yet.
> >
> > On Fri, Dec 18, 2009 at 11:12 AM, RadhikaSunil  >wrote:
> >
> > > Is there GWT plugin for Eclipse 3.6 ? Will the 3.5 version work for
> > > 3.6 ?
> >
> > > I get the following error when trying to install on 3.6:
> >
> > > Cannot complete the install because one or more required items could
> > > not be found.
> > >  Software being installed: Google Plugin for Eclipse 3.5
> > > 1.2.0.v200912062003
> > > (com.google.gdt.eclipse.suite.e35.feature.feature.group
> > > 1.2.0.v200912062003)
> > >  Missing requirement: Google Plugin for Eclipse 3.5
> > > 1.2.0.v200912062003
> > > (com.google.gdt.eclipse.suite.e35.feature.feature.group
> > > 1.2.0.v200912062003) requires 'org.eclipse.platform.feature.group
> > > [3.5.0,3.6.0)' but it could not be found
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>


-- 
Miguel

--

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




number format

2009-12-30 Thread jon...@gmail.com
Hi there
I need to format a value double
example: 10.10154564654654
I need to format this value to 10.10 for example

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




List of argument

2009-12-30 Thread Lyr
Hello,

I actually try to make a project with gwt 2.0.0 and maven. I make a
similary project with this two (a difference is with gwt 1.7) but now
i dont succes in this project cause a lot of trouble, particulary for
run debug mode under maven target. So i try to run gwt development
mode running in eclipse IDE and with file compiling with maven but for
make this i need some argument like repository to use or server to run
with gwt developement mode and i don't find anything about this. So
that is my question : Where i can find a list of argument is possible
to using with developement mode. I only found this one :
USE_REMOTE_UI (for switching running phase of development mode under
eclipse view or not)
but i hope is not the only one?

Thank you

(Sorry for my bad english...)

--

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




IE 6 specific layout problems for DockLayoutPanel

2009-12-30 Thread ryan
When viewing our GWT application in IE 6, we've noticed some weird
behavior for the children of a DockLayoutPanel.

The width of the immediate children of the DockLayoutPanel (the ones
in north, south, east, west) gets set explicitly by GWT no matter what
you do. This only happens in IE6.

It's a big problem because it makes our app look like crap in IE 6 and
it's completely opaque to the developer. It overrides any width that
we set in Java and we can't find where it's happening. Since it's
browser specific we figure it must be some kind of compilation rule
for IE6.

Is anyone familiar with this problem? Any tips on overriding this
behavior?

--

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




Doubt in Ui-Binder and inheritance

2009-12-30 Thread Lucas Vargas Freitas Ventura
Hi guys,

We´re undergraduating in Computer Science in UFRJ, Fedeal University of Rio
de Janeiro, Brazil.
And we have interesting in learn and researching about the technology of
Google, GWT.


We want to know how we can use inheritance with UiBinder.
Let´s pretend We have two documents: super.xml and son.xml.and we want
know if is possible change, ie, add some elements on the components that
came from super.xml, but we want make this in son.xml.

We´ll give another example to explain better our doubt. So, Let´s imagine we
have one document XML, that your name is super.xml, and in this document we
have one layout and two buttons in this layout. But now we want add another
button in this layout, but we want make this change in another document, in
son.XML. So in this context we need know how UiBinder can help us with this
problem, in short words, one specie of "inheritance of XML".


We appreciate and we want to congratulate the excellent work you are
developing for the sake of technology.

Diego da Silva Souza - diesso...@gmail.com
Undergraduating in Computer Science - UFRJ

Lucas Vargas Freitas Ventura - lucasvfvent...@gmail.com
Undergraduating in Computer Science - UFRJ

--

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




Doubt in Ui-Binder and inheritance

2009-12-30 Thread DiegoSS
Hi guys,

We´re undergraduating in Computer Science in UFRJ, Fedeal University
of Rio de Janeiro, Brazil.
And we have interesting in learn and researching about the technology
of Google, GWT.

We want to know how we can use inheritance with UiBinder.
Let´s pretend We have two documents: super.xml and son.xml.and we
want know if is possible change, ie, add some elements on the
components that came from super.xml, but we want make this in son.xml.

We´ll give another example to explain better our doubt. So, Let´s
imagine we have one document XML, that your name is super.xml, and in
this document we have one layout and two buttons in this layout. But
now we want add another button in this layout, but we want make this
change in another document, in son.XML. So in this context we need
know how UiBinder can help us with this problem, in short words, one
specie of "inheritance of XML".


We appreciate and we want to congratulate the excellent work you are
developing for the sake of technology.

Diego da Silva Souza - diesso...@gmail.com
Undergraduating in Computer Science - UFRJ

Lucas Vargas Freitas Ventura - lucasvfvent...@gmail.com
Undergraduating in Computer Science - UFRJ

--

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




To load js of some particular classes at run time on client side using "Code Splitting"

2009-12-30 Thread inder sharma
Hi all!

I am developing an application in GWT 2.0 and using the code splitting
feature of GWT2.0. I want to load js of some particular classes at run
time on client side through code splitting(instead of loading complete
js at once).These classes implements some interfaces and we uses these
classes through interfaces at client side.

The Objects of the classes are made at the server (as a reponse of RPC
request from client)and I want to load the js of these classes when
their Objects are transfered from server to client (at the time of
deserialization of response Object on client).

In normal scenario (without using code splitting) all the compiled js
has been downloaded on client at once , but in our case I want that
only that part of js (client code), which is essentially required to
deserialize the response Object obtained via RPC call should be
downloaded on client along with the response Object.

Can any one give me some idea how I can acheive this requirement.

--

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




GWT Hosted Mode browser window remains blank

2009-12-30 Thread Hendrik Jan van Randen
When testing a GWT project in GWT Hosted Mode often the browser window
remains blank, the status bar saying 'Connecting to site 127.0.0.1'
and the address bar containing 'http://localhost:/'.

The only workaround I've found so far is terminating the server and
run or debug the application again, but often it takes several such
restarts before it works fine again.

I've tried the following, but these do NOT resolve this problem:
* Use another port (in Debug Configurations - Web Application - Main -
Embedded Server), as an explicit number or using 'Automatically select
an unused port'.
* Terminate server and restart Eclipse (has same effect as terminate
server and run or debug again).

I'm running Eclipse Galileo (Build id 20090920-1017) with Google App
Engine Java SDK (version 1.2.2.v200907291526), Google Plugin for
Eclipse 3.5 (version 1.2.0.v200912062003) and Google Web Toolkit SDK
(version 1.7.0.v200907291526).

Any suggestions how to resolve this problem, and what's the real
cause?

Hendrik Jan van Randen


P.S. I've tried the suggestions mentioned in
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3c686f168c33cb47
but none of these resolves the issue (and it is not possible to reply
on that old mailing list thread).

--

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




Re: GWT 2/Eclipse Project References

2009-12-30 Thread Murat Doner
 Which plug-in do you use?

On Fri, Dec 11, 2009 at 1:49 PM, Graham  wrote:

> I've successfully upgraded to GWT 2.0 using the GWT Eclipse Plugin.
> All seems well, with one exception. I write all of my servlets in a
> seperate project, which worked under well under 1.* by simply adding
> the project to the build path.
>
> Unfortunately after moving to GWT 2.0 the project is being ignored at
> run time, and the servlets are not found (although the project appears
> in the "Classpath" tab in my run configuration). Is there anyway to
> specify other projects to be included in the classpath?
>
> If I export my servlets to a JAR file and drop them into the WEB-INF/
> lib directory it works, but it is a bit clunky, especially as the
> servlets are modified frequently!
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: GWT Upload not working in server

2009-12-30 Thread tomasm
If the folder "uploads" exists inside a war file I won't be supprised
if request.getRealPath("uploads") returns null, and you get a NPE. The
javadoc [1] for getRealPath says
   "[...] This method returns null  if the servlet container cannot
translate the virtual path to a real path for any reason (such as when
the content is being made available from a .war archive)."

1. 
http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getRealPath%28java.lang.String%29


On Dec 28, 9:16 am, Anoop  wrote:
> ---
> A nullpointer exception occurred at the line "File
> fileup = new File(request.getRealPath("uploads"));" in server side.
> The folder "uploads" in existing in the uploaded war file. Please let
> me know how to resolve this issue.
>

--

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




Global resources in CSS

2009-12-30 Thread swap_i
Hello! I'm new in GWT development and need some help. I use GWT 2.0
and want define once some constant. For example, I need to define
mainColor = #rrggbb and want use it in various places, like CSS,
MyWidget, MyWidget.ui.xml, etc.

I read about CssResource, read about working with CSS docs, but can't
understand, what rule is the best.

Now my idea realized like this:

GlobalRes.java:
-
public class GlobalRes {

static public int gap = 10;

static public String getGap() {
return gap + "px";
}

static public String getDoubleGap() {
return (gap * 2) + "px";
}

static public String mainColor() {
return "#e6dbcf";
}
}
-


ControlPanel.css:
-
@eval gap admin.client.GlobalRes.getGap();
@eval gap2 admin.client.GlobalRes.getDoubleGap();
@eval mainColor admin.client.GlobalRes.mainColor();

body {
padding: gap;
}

.header {
background: mainColor;
margin-bottom: gap2;
}
-

I can use variables like 'gap' and 'gap2' in many places. If I prefer,
I can change this gap in 1 place (GlobalRes.java) and value changed in
100 places. But it has bottleneck. First lines in ControlPanel.css I
must repeat in other CSS-files.

There is my question: I miss some docs and my code is little stupid?
Anyone can help me?

Thanks for any answer,
Pavel.

--

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




UiBinder templates and horizontalAlignment/verticalAlignment

2009-12-30 Thread hal9000
There is some crucial information in the javadoc for CellPanel about
using horizontal and vertical alignment in ui.xml.  The subclasses of
CellPanel (DockPanel, HorizontalPanel, VerticalPanel) should enclose
child widgets within  elements.  The alignment attributes
(e.g. horizontalAlignment="ALIGN_CENTER") should be added to the
 elements.  The example from the javadoc follows:

 
   
 
   
   
 
   
 

--

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




Re: Problem of "Unable to determine my ip"

2009-12-30 Thread Malathi
I am having the same problem on Fedora Linux.  Where is the hostname
located to change?

Thank you advance


On Dec 20, 4:51 pm, Ji  wrote:
> I had changed the hostname to localhost, and everything works fine
> now. Thank you again.
>
> By the war,myoriginal hostname is something like this Xx.myDomain
>
> On Dec 19, 2:36 pm, darrell pfeifer  wrote:
>
> > On Dec 16, 9:22 pm, Ji  wrote:
>
> > > Hi guys,
> > > I had problem on running GWT project. I use fedora 11 +
> > > eclipse3.5.1 ,when i run the GWT project, it throws a exception:
> > > "java.lang.RuntimeException:Unabletodeterminemyip", then Stopping
> > > AppEngine server. Could anybody help, thanks advance.
>
> > I had the same problem. What are you using for a hostname? If it is
> > something specific, try changing the name to "localhost".
>
> > Explanation: If you look at the GWT code in the stack trace when it
> > fails, the code is trying to resolve the hostname and failing. The
> > statement just before the failure does a specific check for localhost,
> > so you're just doing a workaround by changing the name to localhost.
>
> > I haven't looked into why the specific hostname lookup fails. They
> > code is using standard Java library methods.

--

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




DisclosurePanel: retrieving the height of the content

2009-12-30 Thread babarorhum
Hello,
I am using the DisclosurePanel as described in the GWT example
available from the official site (http://gwt.google.com/samples/
Showcase/Showcase.html#CwDisclosurePanel) and would like to receive a
notification when the panel has been opened in order to fetch the new
height of the disclosure panel.

However, I can only see two handlers available from DisclosurePanel:
one for Open and the second one for Close. From the open handlers, i
get the previous height of the panel, and of course the close handles
gives me the actual height i am looking for, but too late :)

Do you have any suggestion for me or pointers?
Thanks in advance !

Babarorhum

--

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




Re: Unable to find 'stockwatcher.gwt.xml' Error strikes again

2009-12-30 Thread Chris
Hi I get a similar problem. I follow the tutorial word for word then
when starting the web app after step 3. I get :

java.lang.NullPointerException: null
at
com.google.gwt.sample.stockwatcher.client.StockWatcher_xxx.onModuleLoad
(StockWatcher_xx.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule
(OophmSessionHandler.java:185)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:380)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Unknown Source)

On Dec 19, 3:37 pm, AeMaeth  wrote:
> Hi. I'm a newb at both GWT and internet related programming. I tried
> using the GWT v2.0 and found an error mentioned in the headline. I
> checked for solutions in previous versions but none of them worked.
> The server starts running nicely and generates the IP for me to use to
> see theStockWatcherpage but it shows the start page without the
> button or anything much but html and then th Firefox (v3.5.5) stops
> working until I stop the server.
> Help anyone? I might get a job as a programmer "intern" if I work some
> stuff out :)
>
> Thanx

--

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




Moving From Mac To Windows Error

2009-12-30 Thread Deerman
Hi. I moved my project from my mac to a windows machine. I cleaned the
project, rebuilt, and I get the following error when I try to run it.

Starting Jetty on port 0
   [WARN] Failed startup of context
com.google.gwt.dev.shell.jetty.JettyLauncher
$webappcontextwithrel...@68c26c{/,E:\workspace\Project\war}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Source)
at java.util.jar.JarFile.(Unknown Source)
at java.util.jar.JarFile.(Unknown Source)
at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp
(TagLibConfiguration.java:168)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1217)
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:447)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:130)
at org.mortbay.jetty.handler.RequestLogHandler.doStart
(RequestLogHandler.java:115)
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:536)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:377)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:938)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)
at com.google.gwt.dev.DevMode.main(DevMode.java:251)

--

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




Add FlexTable support for getting row/cell for a given widget

2009-12-30 Thread se
When handling events on widgets in a FlexTable, sometimes I also need
to get the row/cell for that widget.

I saw this method at
http://code.google.com/p/gwt-dnd/source/browse/trunk/DragDrop/demo/com/allen_sauer/gwt/dragdrop/demo/client/FlexTableRowDragController.java?r=92&spec=svn92

private int getWidgetRow(Widget widget, FlexTable table) {
for (int row = 0; row < table.getRowCount(); row++) {
  for (int col = 0; col < table.getCellCount(row); col++) {
Widget w = table.getWidget(row, col);
if (w == widget) {
  return row;
}
  }
}

If this is the best solution, would you please add native support for
FlexTable to get row/cell for a given widget?

Thanks!

--

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




Re: Can't inherit com.google.gwt.dev.util.collect

2009-12-30 Thread forewar
Oh, I`ve just changed my library import. Imported java.util.HashMap
instead of com.google.gwt.dev.util.collect.HashMap and I works now.
But I still dont understand what`s wrong with gwt`s HashMap.

--

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




JSNI, gwt and google gadgets

2009-12-30 Thread Ramesh Kumar
Hello everyone

I am new to GWT and web application developments.
I would like to add google gadgets like Google Calendar into gwt Panel.

I got the script code

http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/calendar3.xml&up_calendarFeeds=&up_calendarColors=&up_firstDay=0&up_dateFormat=0&up_timeFormat=1%3A00pm&up_showDatepicker=1&up_hideAgenda=0&up_showEmptyDays=0&up_showExpiredEvents=1&synd=open&w=320&h=165&title=__MSG_Google_Calendar__&lang=en&country=ALL&border=%23ff%7C3px%2C1px+solid+%2399&output=js<http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/calendar3.xml&up_calendarFeeds=&up_calendarColors=&up_firstDay=0&up_dateFormat=0&up_timeFormat=1%3A00pm&up_showDatepicker=1&up_hideAgenda=0&up_showEmptyDays=0&up_showExpiredEvents=1&synd=open&w=320&h=165&title=__MSG_Google_Calendar__&lang=en&country=ALL&border=%23ff%7C3px%2C1px+solid+%2399&output=js>
">

How should I build Panel with this code. I think I will have to use JSNI.
But I don't have much idea.

Ramesh

--

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




How to make FileUpload widget readonly?

2009-12-30 Thread Lakindu
Hi,

Is there a way to make FileUpload widget readonly?
i.e. user should not be able to type on the text field of the
FileUpload.

Thanks in advance,
Lakindu

--

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




Re: Why doesn't com.google.gwt.user.client.ui.Grid have a style name?

2009-12-30 Thread davek
Here's a way to use Grid in UiBinder:
http://www.komacke.com/svn/trunk/gwt/widgets/UiBinderGrid/

It creates a subclass and adds the HasWidgets interface.  This
implementation requires you to specify the number of columns and then
every added widget becomes a new cell, wrapping at the number of
columns specified.  If you'd rather populate a left to right or rows
first, the logic should be easy to tweak.

Since Grid isn't supposed to be treated as a flex table, I imagine
it's low performance to define cells this way, and other drawbacks I
don't understand.  But you get to treat it as a Grid object.

Or, just make a  in uibinder.  :)

Davek

--

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




Re: Can't inherit com.google.gwt.dev.util.collect

2009-12-30 Thread forewar
Hi all!
I also have the same problem and cant find a solution.
As far as I know, there is no such module like HashTable, so it cant
be inherited.
I suppose, the problem is deeper.
Maybe somebody will help us...

On Dec 24, 9:40 pm, emeded  wrote:
> Hi Jim,
> I am encountering a same problem. Did you fix it? Could you share
> please?
>
> Thanks
>
> On Dec 16, 10:10 pm, Jim  wrote:
>
> > I'm trying to use the om.google.gwt.dev.util.collect.HashMap class in
> > my source code, but Eclipse (Galileo 3.5) fails with the following
> > error:
>
> > Loading inherited module 'com.google.gwt.dev.util.collect'
> >    [ERROR] Unable to find 'com/google/gwt/dev/util/collect.gwt.xml' on
> > your classpath; could be a typo, or maybe you forgot to include a
> > classpath entry for source?
> > [ERROR] Line 10: Unexpected exception while processing element
> > 'inherits'
>
> > Here is my config file:
>
> > 
> > 
> >   
> >   
>
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
>
> >   
> >   
> >   
>
> >   
> >   
>
> > 
>
> > and in my code, I've got :
>
> > import com.google.gwt.dev.util.collect.HashMap;
>
> > HashMap defaultParams = new HashMap();
> > defaultParams.put("session_id", Website.sessionID);
>
> > I've looked at the Build Path and it includes the GWT 2.0.0 library
> > with both the gwt-user.jar and gwt-dev.jar files listed.
>
> > Anybody have any ideas or know what is wrong?
>
> > Thanks!
>
> > Jim

--

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




Idea to optimize GWT code spliting (caching of deferred js files)

2009-12-30 Thread Bernhard J . M . Grün
Hello,

at the moment the code splitting feature works like this:
There is a main html/js code file that has a hashed name like
"4F5Dhtml". The deferred code itself is placed in the directory
"deferredjs/4F5D.../". Inside this directory one sees a lot of files
with names like "1.cache.js" and so on. This technique is already
quite nice and helps to reduce the initial loading time of many
applications. The code splitting feature is also worth a million if
one has parts of code that are only executed in some special cases
(like configuration dialogs or dialogs for some group of people).

Now imagine that you have changed some code inside a deferred part. It
is quite clear that the compiler has to recompile everything but I
think it would be perfect if only the changed split point gets a new
name instead of creating a new name for the main html/js code file and
a new directory inside the deferredjs directory. This way a client
browser would not have to reload the whole application but instead
only the changed part of it.

For this I propose to use another naming scheme for the deferred code
parts:
4F5Dhtml is still the main file
deferredjs/4F5D.../ is still the directory for the deferred code parts
deferredjs/4F5D.../3D1Ecache.js would be the name of a deferred
code part.
deferredjs/4F5D.../index.nocache.js small file that contains
references to the actual deferred code files like 3D1Ecache.js

The last file is needed to have a static reference file which can be
used by the main html/js file.

It is clear to me that this proposal only works if the main code
doesn't get changed but this feature would improve the overall user
experience in most cases.


Regards,

Bernhard J. M. Grün

--

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




Re: String problem

2009-12-30 Thread Toddpi314
Sorry,

getBytes is not in the supported client-side subset (ugh).
StringBuffer is supported, as well as toCharArray. That should be
enough.

On Nov 25, 6:14 am, Gosia  wrote:
> Hi
> I''ve got small problem. I've an GWT application in which I would like
> do something like this
>
> String myString = new String("something");
> String otherString = new String(myString.getBytes(),"windows-1252");
>
> I'm writting code in Eclipse, and in code there aren't any problems.
> But when I'm trying to run application in Hosted Mode or compile it
> show some problems
>
> Line 462: The method getBytes() is undefined for the type String
>
> I know , reason of that is JRE Emulation for lang which doesn't have
> those methods.  Is anybody knows how do it in other way (the same
> effect but possible in GWT).
>
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




gwt MVP + http session

2009-12-30 Thread mariyan nenchev
Hi,

I am using MVP architecture in my project. And now i am adding session
management.
What exactly does sessionProvider.get() do:
getSession() or getSession(false).
I do not want to create new session if one does not exist.
Here is my simple  SessionHandler :
public abstract class SessionHandler, RS extends
Result> extends BaseHandler {

protected final Provider sessionProvider;

@Inject
public SessionHandler(Log logger, Provider sessionProvider) {
super(logger);
this.sessionProvider = sessionProvider;
}

protected UserSessionData getUserData() {
try {
return (UserSessionData)
sessionProvider.get().getAttribute(UserSessionData.SESSION_ATTRIBUTE);
} catch (final NullPointerException e) {
throw new InternalClaireException(EKeys.NOT_LOGGEDIN);
}
}
}

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




GWT2.0 and GWTx propertychangesupport

2009-12-30 Thread francescoNemesi
Hi All,

my (rather huge) GWT application relies heavily on the GWTx
implementation of propertyChangeSupport. This doesn't seem to work
anymore with GWT 2.0. In development mode, I get this error:

14:40:55.873 [WARN] [kbit] Warnings in 'jar:file:/D:/GWT/gwt-keinavo-
external-library/gwtx-1.5.2.jar!/com/googlecode/gwtx/java/util/emul/
java/util/regex/Pattern.java'
14:40:55.904 [WARN] [kbit] Line 140: Referencing class
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern': unable
to resolve class, expect subsequent failures
14:40:55.935 [WARN] [kbit] Line 149: Referencing class
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern': unable
to resolve class, expect subsequent failures
14:40:55.966 [WARN] [kbit] Line 183: Referencing class
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern': unable
to resolve class, expect subsequent failures
14:40:55.982 [WARN] [kbit] Line 194: Referencing class
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern': unable
to resolve class, expect subsequent failures

Has anyone else experience this? Are there any workarounds or
alternatives to GWTx? I am badly stumped on this.

Thanks, Francesco

--

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




Re: GWT button

2009-12-30 Thread Jim Douglas
Muhannad,

If you just want the browser's default button style, you can try this:

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

Button button = new Button();
button.removeStyleName("gwt-Button");

On Dec 30, 1:02 am, muhannad nasser  wrote:
> Dear all;
> Does  anyone have a good CSS or style for GWT button because i hate the
> rectangular shape.. and i tried to do the sliding door effect, it worked
> fine but there was some problems in IE, and the hover effect did not work
> also in IE...
>
> thanks
> --
> ~~~With Regards~~~
> Muhannad Dar-Nasser
> ~~Computer Systems Engineering~~

--

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




Re: DropZap web demo built using GWT

2009-12-30 Thread abhiram wuntakal
Nice game dude... the features that u have designed are really awesome!!! I
was able to finish 3 levels and got a message saying, demo version has only
3 levels!! anyways great work!!

~ Abhiram

On Tue, Dec 29, 2009 at 6:05 AM, amich...@gmail.com wrote:

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

--

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




FileUpload widget path name

2009-12-30 Thread Shivi
Hi

I am trying to use the FileUpload widget and when I call the
getFileName() method it returns me the filename without the path name
in firefox.

If I try the same in IE the method returns the filename along with the
path.

e.g: If I browse and select file abc.psr in G: drive .  getFileName()
returns abc.psr in firefox and returns G:\abc.psr in IE.

I would always like to get the path name along with the file name .
How can I achieve this?

Ques2) Is it possible for me to get the unix pathname with a file name
instead of Windows? I am using Windows but instead of G:\abc.psr  I
would like to see /home/aa20/abc.psr

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




Re: Problem managing clickEvent on iPhone

2009-12-30 Thread Joe Cole
We started with open source projects that handle it all for you i.e.
jqtouch. It's a good project to get iphone specific ideas that are
tested in practice and worked fine when integrating with our project.

On Dec 29, 12:01 pm, fvisticot  wrote:
> I'm working on an iPhone web application.
> I have used a GWT button with the following CSS:
>
> .gwt-Button {
>   margin: 0;
>   padding: 3px 5px;
>   text-decoration: none;
>   font-size: small;
>   cursor: pointer;
>   cursor: hand;
>   background: url("images/hborder.png") repeat-x 0px -27px;
>   border: 1px outset #ccc;}
>
> .gwt-Button:active {
>   border: 1px inset #ccc;
>
> }
>
> When i click on the button, the CSS is not applied...
>
> It seems that the :active is not natively supported by the iPhone
> browser.
> Some javascript "tricks" are available at:
> -http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone/9
> -http://rakaz.nl/2009/10/iphone-webapps-101-make-your-buttons-feel-
> native.html
>
> What is the GWT solution ? Is there something available ?

--

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




Re: Upgade from GWT 1.5.3 to GWT2.0

2009-12-30 Thread Joe Cole
We have just moved to 2.0 and yes you need to move to 1.7/1.6
structure first. There are some redundant things, but I found it's
worth getting it going in 1.6 first and then moving directly to 2.0.
If you need a hand let me know.

On Dec 30, 8:05 pm, Sandeep  wrote:
> Hi,
>
> Currently I am using GWT 1.5.3 and I want to upgrade to GWT 2.0.
> I just went though the release notes of GWT2.0 and i found that it
> has steps to upgrade from GWT 1.7 to GWT 2.0.
>
> Do I have to follow same steps to upgrade from GWT 1.5 to GWT 2.0 OR
> Do I have to first upgrade to GWT 1.7 and then to GWT 2.0
>
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




GWT button

2009-12-30 Thread muhannad nasser
Dear all;
Does  anyone have a good CSS or style for GWT button because i hate the
rectangular shape.. and i tried to do the sliding door effect, it worked
fine but there was some problems in IE, and the hover effect did not work
also in IE...

thanks
-- 
~~~With Regards~~~
Muhannad Dar-Nasser
~~Computer Systems Engineering~~

--

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




Re: XML to POJO library, any ideas?

2009-12-30 Thread philippe
You can used this tutorial :

http://xstream.codehaus.org/annotations-tutorial.html

or

http://xstream.codehaus.org/converter-tutorial.html

Annotation or converter are good practices to your case.


On 30 déc, 01:52, Dalla  wrote:
> philippe, perhaps you could answer a question a xstream?
>
> If I have an xml like below, can I convert it to a POJO somehow
> without creating several objects?
> If I for example would only be interested in the match tag, how would
> I get that part only?
>
> 
>   
>     1
>     Stryktipset
>       
>         4108
>         Vecka 52 2009
>         Avslutad
>        
>           
>            1
>            Liverpool
>            Wolverhampton
>            Liverpool
>            Wolverh.
>            240
>            287
>            2
>            0
>            Avslutad
>            261133
>            1
>          
>        
>      
>   
> 
>
> On 29 Dec, 14:25, philippe  wrote:
>
>
>
> > XStream is a good library. It is stable and does not need to be
> > updated because it works well. I use it on my project and I'm happy.
>
> > On 29 déc, 13:36, "Hermod Opstvedt"  wrote:
>
> > > Salut
>
> > > Pourrait ne pas être ce que vous avez besoin, mais avez-vous regardé le 
> > > projet XMLBeans ASF.
>
> > > Hermod
>
> > > Opprinnelig melding - -
> > > Fra: google-web-toolkit@googlegroups.com
> > > [mailto: google-web-tool...@googlegroups.com] På vegne av Dalla
> > > Envoyé le: 29. desember 2009 12:32
> > > Til: Google Web Toolkit
> > > Emne: XML à la bibliothèque de POJO, des idées?
>
> > > Salut tous!
>
> > > Ce n'est pas vraiment un pur GWT question ... mais ...
> > > J'ai utilisé la bibliothèque Xstream avant de convertir XML à POJO.
> > > Mais je dirait qu'il ya pas eu de développement dans plus d'un an, de 
> > > sorte
> > > I'm feeling hésitent à l'utiliser dans mon nouveau projet.
>
> > > Est-ce que quelqu'un sait toute bibliothèque similaires c'est actif?
>
> > > Observe
> > > Dalla
>
> > > --
>
> > > Vous avez reçu ce message car vous êtes abonné au groupe Google
> > > "Google Web Toolkit" groupe.
> > > Pour envoyer à ce groupe, envoyez un courriel à 
> > > google-web-tool...@googlegroups.com.
> > > Pour vous désinscrire de ce groupe, envoyez un courriel à
> > > Google-Web-Toolkit + unsubscr...@googlegroups.com.
> > > Pour plus d'options, visitez ce groupe 
> > > àhttp://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Re: AppController or PlaceManager

2009-12-30 Thread Abdullah Shaikh
Hey Thanks Prashant for the explanation ..

But can you explain a bit more how does this onValueChange method gets
called .. as I am new to GWT I understood the article but I am confused
regarding AppController, if only they have provided the code it would have
been more good.

Also any idea if PlaceManager does the same thing as in onValueChange of
AppController ?

- Abdullah

On Wed, Dec 30, 2009 at 12:27 AM, Prashant Hegde
wrote:

> I had the pleasure of reading the article as well.
>
> Although I was slightly disappointed that the source code was not shared
> fully in the article, the concept is nicely explained, and the code can be
> developed based on the snippets in the article.
>
> At a high level, the AppController is a class that contains code that does
> not belong the the view, model or the presenter. The version of the
> AppController that I have has the following:
>
> a) It implements ValueChangeHandler interface to act as a handler of
> history changed events.
> b) It accepts the RPC Service & the event bus as the constructor arguments
> to be able to pass on these objects to the presenters that it will
> instantiate.
> c) It has a go(HasWidgets) method which gets called by the module entry
> point class. This initiates everything in the app - such as firing the
> default history token(which in turn calls the onValueChange). I also have
> the code to add the AppController to the history as a listener in this
> function itself.
> d) Most important of it all - atleast the thing I liked most - is the
> onValueChange method. This method gets called whenever History stack
> changes. This allows you to manage history & view transitions in your app.
>
> For ex:
>
> public void onValueChange(ValueChangeEvent event) {
> String token = event.getValue();
> if(token!=null) {
>
> if(token.equals("registersmart")) {
> RegisterSmartPresenter presenter = new
> RegisterSmartPresenter(rpcService,eventBus,new RegisterSmartView());
> presenter.go(container);
> }else if(token.equals("userhome")) {
> UserHomePresenter presenter = new
> UserHomePresenter(rpcService,eventBus,new UserHomeView());
> presenter.go(container);
> }
>
> }
>
> }
>
> Hope this helps.
>
> Regards
>
>
> On Tue, Dec 29, 2009 at 11:29 PM, jpnet  wrote:
>
>> I really liked the article, but it's useless without the source code.
>>
>> -JP
>>
>> On Dec 29, 7:55 am, Abdullah Shaikh 
>> wrote:
>> > Anyone ?
>> >
>> > On Tue, Dec 29, 2009 at 2:45 PM, Abdullah Shaikh <
>> >
>> > abdullah.shaik...@gmail.com> wrote:
>> > > I went through
>> > >
>> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur...,
>> > > I am confused, does AppController as mentioned in the article does the
>> same
>> > > that can be done by gwt-presenter's PlaceManager ?
>> >
>> > > If yes, should I go with AppController or PlaceManager ?
>> >
>> > > As I am new to GWT, I understood the gwt-presenter, but I couldn't get
>> how
>> > > the AppController as described in the above link works ?
>> >
>> > > Thanks,
>> > >  Abdullah
>> >
>> >
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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




Re: Blank Screen in IE8 but Normal in FF3.5

2009-12-30 Thread jd
and to clarify... you mean they appear in FF and not IE right?

On Dec 26, 3:32 pm, Nomis  wrote:
> Dear all,
>
> Just figured it out the problem was caused by using "RootLayoutPanel".
>
> When I put all my content into RootLayoutPanel.get(), they appear only
> in IE but not Firefox.
> If I use RootPanel.get() instead, they appear in both browsers.
>
> Tho I don't quite understand the reasonale, but the problem is
> solved.  Thanks.
>
> Regards,
> Nomis
>
> On Dec 26, 2:18 pm, Nomis  wrote:
>
>
>
> > Hi,
>
> > I am developing a project that contain just a single simple class.  I
> > have been working on it with GWT 2.0 and FF3.5.  Today, I just wanna
> > try it out inIE8.  After downloading the plugin and solve a problem
> > of the plugin (http://code.google.com/p/google-web-toolkit/issues/
> > detail?id=4358), I just got a blank screen inIE8
>
> > Please help.
>
> > Thanks,
> > Nomis

--

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




Possible bug with ImageResource

2009-12-30 Thread Daniel
Hi,

It seems that GWT has problems loading certain png's into a
ClientBundle.  I will happily pass the image along to any other dev
who wants to test it.

The error in full:

Compiling module org.codingventures.uiwithtest.UiWithTest
   [ERROR] Errors in 'generated://9765C43330D8F23745822A0D5F0695CC/org/
codingventures/uiwithtest/client/UiWithTest_BinderImpl.java'
  [ERROR]  Internal compiler error
java.lang.NullPointerException
at com.google.gwt.dev.javac.CompiledClass.(CompiledClass.java:
83)
at com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit
(JdtCompiler.java:203)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
(TypeDeclaration.java:1198)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
(CompilationUnitDeclaration.java:687)
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process
(JdtCompiler.java:157)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
466)
at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.compile(CompilationStateBuilder.java:141)
at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildGeneratedTypes
(CompilationStateBuilder.java:325)
at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.addGeneratedTypes(CompilationStateBuilder.java:126)
at
com.google.gwt.dev.javac.CompilationState.addGeneratedCompilationUnits
(CompilationState.java:86)
at com.google.gwt.dev.javac.StandardGeneratorContext.finish
(StandardGeneratorContext.java:348)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds
(WebModeCompilerFrontEnd.java:129)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:123)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:234)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
$200(AbstractCompiler.java:109)
at com.google.gwt.dev.jdt.AbstractCompiler.compile
(AbstractCompiler.java:522)
at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations
(BasicWebModeCompiler.java:112)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations
(WebModeCompilerFrontEnd.java:47)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
(JavaToJavaScriptCompiler.java:421)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile
(JavaScriptCompiler.java:32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
at com.google.gwt.dev.Compiler.run(Compiler.java:201)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
87)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:81)
at com.google.gwt.dev.Compiler.main(Compiler.java:159)

[ERROR] Unexpected
java.lang.NullPointerException
at com.google.gwt.dev.javac.CompiledClass.(CompiledClass.java:
83)
at com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit
(JdtCompiler.java:203)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
(TypeDeclaration.java:1198)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
(CompilationUnitDeclaration.java:687)
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process
(JdtCompiler.java:157)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
466)
at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.compile(CompilationStateBuilder.java:141)
at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildGeneratedTypes
(CompilationStateBuilder.java:325)
at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.addGeneratedTypes(CompilationStateBuilder.java:126)
at
com.google.gwt.dev.javac.CompilationState.addGeneratedCompilationUnits
(CompilationState.java:86)
at com.google.gwt.dev.javac.StandardGeneratorContext.finish
(StandardGeneratorContext.java:348)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds
(WebModeCompilerFrontEnd.java:129)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.jdt.AbstractCompiler$

Re: Blank Screen in IE8 but Normal in FF3.5

2009-12-30 Thread jd
I am having exactly the same problem with 2.0.  Yes I am in standards
IE8 standards mode and the problem is fixed by changing to IE7
standards mode with the tag



However, I have tested a simple DockLayoutPanel including a map (which
I thought could be the problem) and it all seems to work fine in IE8
standards mode - so there must be some other factor in my code that
prevents the DockLayoutPanel from displaying.  I am happy for now with
the meta tag but will try to figure out what the cause is some time.

--

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