Re: GWT Locale does work in address bar, does not work in meta

2011-12-01 Thread kim young ill
did you put it before .
at least it didnt work for me if i put it after 

On Thu, Dec 1, 2011 at 5:13 PM, Jesse  wrote:

> Hi
>
> I have a gwt portlet with (for now) localization in English (default)
> and Dutch.
>
> If I put ?locale=nl& in the address bar, I get nice Dutch texts.
> However, if I put  in
> the head of my html file, without any reference to locale in the
> address bar, I get the English texts. When I look into the rendered
> html source, I can see the  tag. According to the documentation
> it should give Dutch texts.
>
> Does anybody have a suggestion about where I should look to fix this?
> Obviously my locale is working, but it disregards the meta property
>
> With kind regards
>
> Jesse van Bekkum
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Is there any way I can add a Chart widget into cells in a celltable?

2011-12-01 Thread -sowdri-
Cells and widgets are 2 different ways to render info on the screen. While 
the former uses innerHtml, the later uses DOM level manipulations for 
rendering the data. 

There is a proposal to come up with cell backed widgets, I'm not sure about 
the implementation roadmap.
refer: http://code.google.com/p/google-web-toolkit/wiki/CellBackedWIdgets for 
details. 

I'm not sure why you are trying to embed widget in cell table. But if you 
really have to do it, try image charts (
http://code.google.com/apis/chart/image/ ). You can create custom cells for 
each of the chart type you use and you can embed this into the celltable. 

But you will lose the interactivity though :(

Hope this helps,
-sowdri-

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



Re: Loading inherited module 'com.google.gwt.i18n.I18N' and Unexpected error while processing XML

2011-12-01 Thread bognekadje
Hi Thomas,
I download and compare, there are same.

After deleting files in my repository, i want re-download all artifact
using mvn commands.
I remark that downloading from maven central repository stop without
reason.
So i think it is problem concerning repository. Before to get my
error, i think, i have files corrupted in my repository.
I don't know why.
how can i do to download  files from repository?
Is there another remote repository where i can get artifact files?

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



Re: Activities and Places - Ant compilation

2011-12-01 Thread Karthik Reddy
*"Classes referenced from annotations have to be compiled for GWT to be 
able to process them from within generators (as is the case for 
@WithTokenizers on a PlaceHistoryMapper)."*

See  
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e0209e0e57e1152b


--
Karthik Reddy
https://plus.google.com/103243388366746199136

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



Re: Stuck in the StockWatch tutorial

2011-12-01 Thread -sowdri-

>> RootPanel.get("stockList").add(mainPanel);

// From the javadoc

public static RootPanel 

 *get*(java.lang.String id)

Gets the root panel associated with a given browser element. For this to 
work, the HTML document into which the application is loaded must have 
specified an element with the given id.

*Parameters:*id - the id of the element to be wrapped with a root panel ( 
null specifies the default instance, which wraps the  element)*
Returns:**the root panel, or null if no such element was found*
Looks like your host html is missing an element with id "stockList", so 
either add it to your host page or Use the following line, without the id 
param, 

RootPanel.get().add(mainPanel);

Thanks,
-sowdri-

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



Re: Activities and Places - Ant compilation

2011-12-01 Thread Ashton Thomas
My bad, I didn't read that part.. damn..

On Dec 1, 7:35 pm, Thomas Broyer  wrote:
> Well, if it compiles with the GPE, it's likely an issue with the Ant script, 
> right?
>
> It looks like the client-side classes haven't been compiled (javac) or that 
> the output from javac is not in the classpath for the GWT compiler.

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



Stuck in the StockWatch tutorial

2011-12-01 Thread thronedoggie

Okay, I can keep retyping the same things over and over, or I can ask
for help.

(Actually, I'm doing both : )

I'm in the sample app tutorial -

http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html

- building the StockWatch web app. I'm using Indigo build id
20110615-0604. I typed it in just like it said and everything was
fine, then finished section three ("Build the User Interface" and
then, when I tried to run the test, Church was Out.

*
Exception while loading module
com.google.gwt.sample.stockwatcher.client.StockWatcher. See
Development Mode for details.

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
200)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
525)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at
com.google.gwt.sample.stockwatcher.client.StockWatcher.onModuleLoad(StockWatcher.java:
47)
... 9 more
*

That line is

 RootPanel.get("stockList").add(mainPanel);

and it all looks just like the example - EXCEPT that the .get in the
method chain is in *italics*.

Tried some googling - couldn't find out what the italics mean.

If anyone has any ideas, I'd love to hear about it. I was having fun
with this until this happened, and I can't find any way around it.

thanks,
jim p.
at Godaddy, where they don't do a *lot* of Java, but I'd like to
help it along :L)

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



Is there any way I can add a Chart widget into cells in a celltable?

2011-12-01 Thread Jian Lu
Basically I have a chart widget created as documented here:
http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=VisualizationGettingStarted

The problem is I need to add this chart into my CellTable, and CellTable
doesn't take Widgets.

Is there anyway I can achieve that?

Thanks!

-Jian

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



Re: transfer Objects between GWT and EJB

2011-12-01 Thread German Castellar
Hello,

I found for me a very good webpage  that help me a lot with please refer to
the following
link:
http://jamies-gwt.blogspot.com/2010/03/walkthrough-integrating-gwt-with-jboss.html

Please if this help you let me know.

Remember you have to create a proxy like the one specified in the following
page:

http://code.google.com/intl/en/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideMakingACall

Greets,

On Thu, Dec 1, 2011 at 5:01 PM, ph09  wrote:

> Hello,
>
> I have got a question because of the architectur of my project.
> At the one side there is a GWT Package with the Client Side and also a
> Servlet to communicate with an EJB Project.
> On the other Side there is a EJB Project with Session Beans and
> Entities which schould be stored in a database and send between GWT
> Client and the database. But I don't know how I can realize that. how
> can I send an Object from my Session Bean to the GWT Servlet, because
> the GWT Servlet don't know about the Entitities Classes.
>
> Thats my Project Structur:
>
> Entities + Session Bean:
> http://pastebin.com/anAbCqgd
>
> GWT Servlet:
> http://pastebin.com/Ujjka9vT
>
> I hope that it is clear where my problem is ;)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



GWT Locale does work in address bar, does not work in meta

2011-12-01 Thread Jesse
Hi

I have a gwt portlet with (for now) localization in English (default)
and Dutch.

If I put ?locale=nl& in the address bar, I get nice Dutch texts.
However, if I put  in
the head of my html file, without any reference to locale in the
address bar, I get the English texts. When I look into the rendered
html source, I can see the  tag. According to the documentation
it should give Dutch texts.

Does anybody have a suggestion about where I should look to fix this?
Obviously my locale is working, but it disregards the meta property

With kind regards

Jesse van Bekkum

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



Re: transfer Objects between GWT and EJB

2011-12-01 Thread Mark
I dont know that you can do that directly.  The best way I know of is
to create a pojo to represent the entity on the gwt side and then
translate back and forth between them.

On Dec 1, 5:01 pm, ph09  wrote:
> Hello,
>
> I have got a question because of the architectur of my project.
> At the one side there is a GWT Package with the Client Side and also a
> Servlet to communicate with an EJB Project.
> On the other Side there is a EJB Project with Session Beans and
> Entities which schould be stored in a database and send between GWT
> Client and the database. But I don't know how I can realize that. how
> can I send an Object from my Session Bean to the GWT Servlet, because
> the GWT Servlet don't know about the Entitities Classes.
>
> Thats my Project Structur:
>
> Entities + Session Bean:http://pastebin.com/anAbCqgd
>
> GWT Servlet:http://pastebin.com/Ujjka9vT
>
> I hope that it is clear where my problem is ;)

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



Re: Activities and Places - Ant compilation

2011-12-01 Thread Thomas Broyer
Well, if it compiles with the GPE, it's likely an issue with the Ant script, 
right?

It looks like the client-side classes haven't been compiled (javac) or that the 
output from javac is not in the classpath for the GWT compiler.

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



Re: Ideal development platform for GWT/GAE?

2011-12-01 Thread Ashton Thomas
I moved from Ubuntu to MacBook to a very recent MacBookPro. A good 
processor and a bit of memory for dev mode really helps. My new machine is 
a beast which makes me smile to run in dev and compile my GWT app. 
2.5i7quad/SSD/8gbMem. Dev mode screams on this thing. And it compiles the 
app for production like it is opening Chrome. It bankrupted me but I don't 
regret it since I am working on a pretty big project which was painfully 
slow on my previous machine. At times: Eclipse uses 1.2+ gb memory and Java 
and Firefox take almost another gb. (what's the point in having it if you 
don'e use it..) 

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



transfer Objects between GWT and EJB

2011-12-01 Thread ph09
Hello,

I have got a question because of the architectur of my project.
At the one side there is a GWT Package with the Client Side and also a
Servlet to communicate with an EJB Project.
On the other Side there is a EJB Project with Session Beans and
Entities which schould be stored in a database and send between GWT
Client and the database. But I don't know how I can realize that. how
can I send an Object from my Session Bean to the GWT Servlet, because
the GWT Servlet don't know about the Entitities Classes.

Thats my Project Structur:

Entities + Session Bean:
http://pastebin.com/anAbCqgd

GWT Servlet:
http://pastebin.com/Ujjka9vT

I hope that it is clear where my problem is ;)

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



GWT 2.4 crashes in dev mode on IE 9.0.8112.

2011-12-01 Thread nemo
Anyone know of a workaround? This problem was first described almost a
year ago in:

http://googlewebtoolkit.blogspot.com/2010/12/support-for-gwt-dev-mode-in-ie-9.html

It was supposedly fixed in GWT 2.3, but it still crashes in 2.4 on IE
9.

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



History change event fired in Chrome for no reason :(

2011-12-01 Thread Ed
Hi,
History works weird in Chrome and I can't debug it as I get lost in
hosted mode code but I can reproduce the error in web mode in Chrome
and not in FF. It works fine in FF.

Situation:
I have a display that shows a form in show and edit mode with
respectively history marker h1 and h2.
When going to view  mode, I set a history marker manually through
History.newItem(marker, false) (note that argument false specifies to
not fire a History value change event). The history marker h1
correctly shows up in the url (and no History change event is fired).
When going to edit mode, I do the same, set the history marker
manually and it shows up as h2 in the url.
I then press the save or cancel button such that I go back to the show
mode. In code I do the same as above: set the History marker h1
manually.
Now something strange happens in Chrome (not FF): it shows h1 in the
url just a moment and then it fires (for some reason I don't
understand and can't debug) a History value change event (coming from
the HistoryImplSafari implementation class) with as history marker h2 :
(. It's like the back button is clicked, such that the application
shows the edit view again and the marker h2 shows up in the url (just
after showing h1 for a moment).
Apparently the history value change event is fired asynchronized (in
FF the event isn't fired).

Anybody any idea why this event is fired?
For me this is beginning to look like a bug.

I debuged every action, and all of a sudden this history change event
shows up for no reason... just like a back button is pressed.
I hope somebody can give me some hints what this might be.

I am about to implement a hack for the moment: a timer that will
ignore this value change event...
Note: FF works great and correctly shows the h1 and h2 markers as
expected (also when using the browser back and forward buttons).

- Ed

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



Re: Activities and Places - Ant compilation

2011-12-01 Thread Ashton Thomas
I think the problem is in your application code and not an issue with a 
flag or adding anything to the classpath. Can you include your Mapper and 
Place(s) files?

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



Re: Ideal development platform for GWT/GAE?

2011-12-01 Thread Tomi B.
Hey Mark,

>From anecdotal evidence Ubuntu has been the fastest with our code base. 
We've got developers on Windows 7, OSX, and some on Ubuntu. There has been 
a striking difference in compile times on the Ubuntu machines on comparable 
hardware (much faster). Personally, I'm on Win 7 64-bit. On the same 
hardware, moving from 32-bit to 64-bit dropped compile times to almost half.

//Tomi B.

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



Activities and Places - Ant compilation

2011-12-01 Thread Jeanpylone
Hi there!

Is there some special flag/classpath to add when a GWT project using 
Activities and Places is compiled with Ant?
While it is compiling successfully with the GPE compilation, it fails under 
Ant with a stacktrace like this:

 

  [java] Compiling module test.MainModule

 [java]Resolving test.client.mapping.AppPlaceHistoryMapper

 [java]   Found type 'test.client.mapping.AppPlaceHistoryMapper'

 [java]  [ERROR] Annotation error: cannot resolve 
> test.client.places.HomePlace$HomePlaceTokenizer

 [java] java.lang.ClassNotFoundException: 
> test.client.places.HomePlace$HomePlaceTokenizer

 [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

 [java] ...

 [java] at com.google.gwt.dev.Compiler.main(Compiler.java:177)

 [java]  [ERROR] Annotation error: expected class 
> java.lang.Class, got null

 [java]  [ERROR] Annotation error: cannot resolve 
> test.client.places.ListPlace$ListPlaceTokenizer

 [java] java.lang.ClassNotFoundException: 
> test.client.places.ListPlace$ListPlaceTokenizer

 [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

 [java] ...

 [java] at com.google.gwt.dev.Compiler.main(Compiler.java:177)

 [java]  [ERROR] Annotation error: expected class 
> java.lang.Class, got null

 [java]Scanning for additional dependencies: 
> file:/test/client/MainModule.java

 [java]   Computing all possible rebind results for 
> 'test.client.mapping.AppPlaceHistoryMapper'

 [java]  Rebinding test.client.mapping.AppPlaceHistoryMapper

 [java] Invoking generator 
> com.google.gwt.place.rebind.PlaceHistoryMapperGenerator

 [java][ERROR] Generator 
> 'com.google.gwt.place.rebind.PlaceHistoryMapperGenerator' threw an 
> exception while rebinding 'test.client.mapping.AppPlaceHistoryMapper'

 [java] java.lang.NullPointerException

 [java] at 
> com.google.gwt.place.rebind.PlaceHistoryGeneratorContext.getWithTokenizerEntries(PlaceHistoryGeneratorContext.java:285)

 [java] ...

 [java] at com.google.gwt.dev.Compiler.main(Compiler.java:177)

 [java]   [WARN] For the following type(s), generated source was 
> never committed (did you forget to call commit()?)

 [java]  [WARN] test.client.mapping.AppPlaceHistoryMapperImpl

 [java][ERROR] Errors in 'file:/test/client/MainModule.java'

 [java]   [ERROR] Line 33:  Failed to resolve 
> 'test.client.mapping.AppPlaceHistoryMapper' via deferred binding

 [java][ERROR] Cannot proceed due to previous errors



Any idea will be appreciated :)


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



GWT Canvas ImageData requires multiple reads to get value

2011-12-01 Thread Maiku
I am wondering if anyone else has encountered this and if so is it a
bug or simply a misunderstanding on my part of how Canvas's ImageData
works.

I am trying to implement a simple hit detection on my canvas where
each graphic in a list is drawn in a solid colour representing its
index in the list. As I go through the list, I check the Alpha value
at the current mouse coordinates to see if they hit the graphic just
drawn and if so I return that graphic as the one that was selected.

The problem I am getting is that after getting the ImageData from the
Canvas and calling imageData.getAlphaAt(0, 0) I always get 0. After a
bunch of testing I found that if I call it multiple times in a row (at
the same location) I will eventually get the correct value. My code is
like the following:

 hitContext.clearRect(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT);

  List graphics = listener.getSymbolList();
  for (int i = graphics.size() - 1; i >= 0; i--)
  {
 graphics.get(i).draw(hitContext, i);

 ImageData imageData = hitContext.getImageData(x, y, 1, 1);

 // The coordinates for getAlphaAt are those of the imageData
not the original canvas.
 int alpha = imageData.getAlphaAt(0, 0);// first time this
method is run, this always returns 0. afterwards, returns expected
result
 alpha = imageData.getAlpha(0, 0);   // also returns 0
 alpha = imageData.getAlpha(0,0);   //  returns
correct value


 if (0 < imageData.getAlphaAt(0, 0))
 {
 
 }
 }


So is this a bug in GWT or is this call assumed to be asynchronous
(although not stated as such) and if so how should I be handling it?

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



Re: How can I trap for a 404 in my GWTTestCase?

2011-12-01 Thread laredotornado
Thanks, the trouble I'd have is that the FormPanel exists within my
Composite component

 final ProductDetailsView productDetailsView = new
ProductDetailsView();

which is client code.  That is, I can't put JUnit directives in
there.  Does that make sense?  The form panel within there already has
a submit complete handler associated with it, so I'm not sure if I can
override that from my test case.  Ultimately, I just want to see if
the form submission resulted in a non-200 response.

Thanks, - Dave


On Dec 1, 9:47 am, Thomas Broyer  wrote:
> Just like you're "waiting" for getNode to get back, but here using events:
> add a FormPanel.SubmitCompleteHandler to your FormPanel and only call
> finishTest from there. The handler will be called when the server responds
> to the form submission, so either it works and you can have asserts and
> then finishTest() (in the normal case), or it somehow breaks (there's
> little to no reason, but who knows) and your test will fail in timeout
> (because finishTest will never be called before the timeout expires).

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



Re: GWT in Google Products

2011-12-01 Thread anatoly techtonik
Thanks! That's a pretty extensive list, with Angry Birds Chrome coming as a 
big surprise. =)

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



Re: GWT in Google Products

2011-12-01 Thread Thomas Broyer
Oh, I forgot:
9. Gerrit , the codereview tool used by 
Android
10. SpeedTracer
11. Angry Birds Chrome  (not technically a 
Google product, but Google took a great role in making it a reality, 
they're even listed in the game credits)

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



Re: GWT in Google Products

2011-12-01 Thread Thomas Broyer
4. http://www.google.com/flights
5. http://www.google.com/hotelfinder
6. http://www.google.com/moderator/
7. the "follow" popup in Google Buzz (discontinued)
8. the Google Checkout Store 
Gadget
 (used 
on the Chrome WebStore for instance)

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



Re: How can I trap for a 404 in my GWTTestCase?

2011-12-01 Thread Thomas Broyer
Just like you're "waiting" for getNode to get back, but here using events: 
add a FormPanel.SubmitCompleteHandler to your FormPanel and only call 
finishTest from there. The handler will be called when the server responds 
to the form submission, so either it works and you can have asserts and 
then finishTest() (in the normal case), or it somehow breaks (there's 
little to no reason, but who knows) and your test will fail in timeout 
(because finishTest will never be called before the timeout expires).

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



Re: Troubles getting DataGrid to show

2011-12-01 Thread Juan Pablo Gardella
Try make a sample (without third dependencies) to reproduce the error and
share it.


2011/12/1 koma 

> Thx Juan
>
> I made sure now that from the outermost container upto my DataGrid,
> everything is using layoutpanel like this :
>
> 
> @def coloricons #33;
> @def hovercolor orange;
> body,html {
> padding: 0;
> border: 0;
> margin: 0;
> font-family: 'Droid Sans', sans-serif;
> color: coloricons;
> }
>  #parent {
> position: absolute;
> background-color: #f2f2f2;
> }
>  .ticket {
> margin-right: 3px;
> display: inline-block;
> font-size: 22px;
> padding-right: 5px;
> color: coloricons;
> }
>  .ticket:hover {
> font-weight: bold;
> font-size: 22px;
> color: hovercolor;
> cursor: pointer;
> cursor: hand;
> text-decoration: none;
> }
>  .ticketimage {
> padding-right: 1px;
> }
>  .feedback {
> position: absolute;
> width: 30px;
> left: 10px;
> top: 10px;
> }
>  .action {
> margin: 0px auto;
> cursor: pointer;
> cursor: hand;
> }
>  .container {
> position: absolute;
> left: 0px;
> top: 0px;
> right: 0px;
> bottom: 0px;
> border: 1px solid #92C845;
> -moz-border-radius: 5px;
> -webkit-border-radius: 5px;
> -khtml-border-radius: 5px;
> border-radius: 5px;
> background-color: white;
> min-width: 600px;
> }
>  .blockLabel {
> position: absolute;
> top: 12px;
> left: 28px;
> min-width: 50px;
> display: inline-block;
> font-size: 12px;
> font-weight: bold;
> color: coloricons;
> cursor: pointer;
> cursor: hand;
> }
>  .blockLabel:hover {
> color: hovercolor;
> }
>  .blockActions {
>  }
>  .blockActions:hover {
> background-color: hovercolor;
> }
>  .blockTickets {
> position: absolute;
> top: 5px;
> right: 10px;
> display: inline-block;
> }
>  .details {
> position: absolute;
> left: 0px;
> right: 0px;
> top: 42px;
> bottom: 200px;
> }
>  .buttonbar {
> width: 100%;
> height: 100px;
> }
>  .table {
> width: 100%;
> }
>  .tablayoutpanel {
> position: absolute;
> left: 0px;
> right: 0px;
> top: 0px;
> height: 156px;
> }
>  .top {
> display: block;
> border: 1px solid red;
> }
> 
>
>
> 
> 
> 
> 
> 
> 
> 
> details
> 
> 
>  altText="new or open tickets" title="new or open tickets" />
> 
>  altText="pending tickets" title="pending tickets" />
> 
>  altText="solved or closed tickets" title="solved or closed tickets" />
> 
> 
> 
> 
> 
>  height="200px" addStyleNames="{style.tablayoutpanel}">
> 
> actions
> 
> actions
> 
> 
> 
> 
> history
> 
> 
> 
> 
> 
>
> The view is being added to the RootLayoutPanel but no luck. Only the
> DataGrid header is shown but no data itself. CellTable works fine.
> Any thoughts ?
>
> A
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/HVlJPE7rTwgJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Troubles getting DataGrid to show

2011-12-01 Thread koma







screenshot 

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



Re: Troubles getting DataGrid to show

2011-12-01 Thread koma
Thx Juan

I made sure now that from the outermost container upto my DataGrid, 
everything is using layoutpanel like this :


@def coloricons #33;
@def hovercolor orange;
body,html {
padding: 0;
border: 0;
margin: 0;
font-family: 'Droid Sans', sans-serif;
color: coloricons;
}
 #parent {
position: absolute;
background-color: #f2f2f2;
}
 .ticket {
margin-right: 3px;
display: inline-block;
font-size: 22px;
padding-right: 5px;
color: coloricons;
}
 .ticket:hover {
font-weight: bold;
font-size: 22px;
color: hovercolor;
cursor: pointer;
cursor: hand;
text-decoration: none;
}
 .ticketimage {
padding-right: 1px;
}
 .feedback {
position: absolute;
width: 30px;
left: 10px;
top: 10px;
}
 .action {
margin: 0px auto;
cursor: pointer;
cursor: hand;
}
 .container {
position: absolute;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
border: 1px solid #92C845;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;
background-color: white;
min-width: 600px;
}
 .blockLabel {
position: absolute;
top: 12px;
left: 28px;
min-width: 50px;
display: inline-block;
font-size: 12px;
font-weight: bold;
color: coloricons;
cursor: pointer;
cursor: hand;
}
 .blockLabel:hover {
color: hovercolor;
}
 .blockActions {
 }
 .blockActions:hover {
background-color: hovercolor;
}
 .blockTickets {
position: absolute;
top: 5px;
right: 10px;
display: inline-block;
}
 .details {
position: absolute;
left: 0px;
right: 0px;
top: 42px;
bottom: 200px;
}
 .buttonbar {
width: 100%;
height: 100px;
}
 .table {
width: 100%;
}
 .tablayoutpanel {
position: absolute;
left: 0px;
right: 0px;
top: 0px;
height: 156px;
}
 .top {
display: block;
border: 1px solid red;
}










details














actions

actions




history






The view is being added to the RootLayoutPanel but no luck. Only the 
DataGrid header is shown but no data itself. CellTable works fine.
Any thoughts ?

A

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



Re: GWT in Google Products

2011-12-01 Thread anatoly techtonik
I couldn't find any immediately useful results in this group, so I thought 
that it will be more helpful if people could just reply with their findings 
and refer to this thread or +1 it in future. So far, we have:

1. Google Wave (discontinued)
2. AdWords
3. Google Groups

Anything else?

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



Re: How can I trap for a 404 in my GWTTestCase?

2011-12-01 Thread laredotornado
Hi,

I know, I'm not waiting for result of submitting the form.  How would
I change or add to

saveButton.click();

that submits the form, that would wait for the
FormPanel.SubmitCompleteEvent?  Thanks, - Dave

On Dec 1, 2:54 am, Thomas Broyer  wrote:
> You can't. Or rather, you only have access to the response page's body, so
> if you can identify a 404 from that, you're done.
>
> BTW, your test actually isn't even seeing the 404, because you finishTest()
> just after you saveButton.click(), so the form is submitted (actually
> probably just after the code yields to the browser, so *after* the
> finishTest()) but you don't wait for the FormPanel.SubmitCompleteEvent; so
> it's expected that your test pass.

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



Re: Troubles getting DataGrid to show

2011-12-01 Thread Juan Pablo Gardella
Hi,

See
http://stackoverflow.com/questions/7874168/solved-gwt-datagrid-automatic-height
.

You need in DOM tree, in some point, a fixed region that is the parent of
the DataGrid, or attach to html body element the RootLayoutPanel. I had a
problem recently, check T.Broyer suggestion at this
thread
.

Juan

2011/12/1 koma 

> Hi,
>
> I have a TabLayoutPanel and in the second tab, I would like to display a
> DataGrid (the scrollable, fixed header version of CellTable). I have been
> reading here a bit about the requirement to put it in a LayoutPanel so I
> tried (among other things) this :
>
> 
>  addStyleNames="{style.tablayoutpanel}">
> 
> actions
> 
> actions
> 
> 
> 
> 
> history
> 
>  height="156px" />
> 
> 
> 
> 
>
> Unfortunately, only the header is showing, no data.
> When I replace DataGrid with CellTable in both the uibinder xml and my
> code, the table displays without problems.
>
> Anybody ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/knrykfdWM-UJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Troubles getting DataGrid to show

2011-12-01 Thread koma
Hi,

I have a TabLayoutPanel and in the second tab, I would like to display a 
DataGrid (the scrollable, fixed header version of CellTable). I have been 
reading here a bit about the requirement to put it in a LayoutPanel so I 
tried (among other things) this :




actions

actions




history







Unfortunately, only the header is showing, no data.
When I replace DataGrid with CellTable in both the uibinder xml and my 
code, the table displays without problems.

Anybody ?

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



Re: How to implement admin features/sections in app

2011-12-01 Thread Drew Spencer
Hey everyone, and thanks again for the help.

You have all given me lots of advice on security, which is something I 
don't have much experience on, so it's greatly appreciated. I am securing 
my server-side calls at the moment, and decided that as there will be only 
one or two admin users, it was best to add those UI elements in dynamically 
as otherwise everyone would have extra overhead that they didn't need.

As for the code splitting, I think that's a bit too advanced for me atm, 
but as my application grows it could become a possibility.

Thanks to you all again. 

Drew

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



Re: GWT in Google Products

2011-12-01 Thread Jens
Search this Group. There are already some posts about it. 

The new Google Groups interface for example is written in GWT and there are 
plenty of other public Google projects written in GWT. Also there seems to 
be a lot of internal Google projects based on GWT.

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



Re: Issue with Custom exception in Production mode

2011-12-01 Thread Jens
Take a look at your server log if there are some warnings or even 
exceptions regarding serialization problems. A 500 error can be anything, 
so you have to find the reason in your server logs.

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



GWT -system propery class Available

2011-12-01 Thread Devibalan Mahadevan

Hi,
   Is there system property  class available in GWT 2.0 to get the
client machine user Name or ID


Thanks,
Devibalan.M

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



Import ArrayList to Grid

2011-12-01 Thread Sameer Doda
Hi
I am having trouble importing an array list to a grid panel.
The issue is that the list gets imported but the elements are
displayed in a single row.
Example: [one, two, three, four]
I want the data to be in different rows.

I create the grid using a list store and column model.
Any help will be appreciated

Thanks

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



GWT in Google Products

2011-12-01 Thread anatoly techtonik
I expected this to be found in FAQ, but couldn't. What Google products 
(except Wave and AdWords ) 
use GWT?

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



Re: Deferred binding, how to see generated java source code?

2011-12-01 Thread ksurakka
Thank's Juan, there is -gen compiler option that will do the job.

Best regards
  Kari Surakka

On 25 loka, 20:36, Juan Pablo Gardella 
wrote:
> I think you can use gen parameter in gwt
> compiler
>
> 2011/10/25 ksurakka 
>
>
>
>
>
>
>
> > Hello,
>
> > I'm using deferred binding to accomplish one task in my GWT
> > application. Is there some way to see final java source code that my
> > generator class generates?
>
> > Best regards
> >  Kari Surakka
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Issue with Custom exception in Production mode

2011-12-01 Thread Nagin Kothari
I have defined custom exception  extending from Exception class. On server
I throws this custom exception with some message.
My RPC call also has this exception  as part of service call signature. In
development mode when I show this message  in "onFailaure()" method of RPC
call on client,
I see proper message. But in production (after compilation)  , on client I
see 500 error instead of message.

Any idea could be the reason and how to resolve this?

Thanks ,

Nagin kothari

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



Re: How can I trap for a 404 in my GWTTestCase?

2011-12-01 Thread Thomas Broyer
You can't. Or rather, you only have access to the response page's body, so 
if you can identify a 404 from that, you're done.

BTW, your test actually isn't even seeing the 404, because you finishTest() 
just after you saveButton.click(), so the form is submitted (actually 
probably just after the code yields to the browser, so *after* the 
finishTest()) but you don't wait for the FormPanel.SubmitCompleteEvent; so 
it's expected that your test pass.

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



Re: How to read properties at runtime

2011-12-01 Thread Thomas Broyer
See 
http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html#DevGuideDynamicStringInternationalization
 and http://code.google.com/webtoolkit/articles/dynamic_host_page.html for 
more info.

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



Re: How to handle Browser History using UiBinder ?

2011-12-01 Thread saida dhanavath
Hi,

If you follow MVP or not is not a big matter here, I suggest you to use
GWT's Activities and Places framework built only for history management
needs.

As Thomas said, UIBinder is nothing to do with history management.

If you which widget container needs to be bookmarked, You can write Place
and Activity for that widget container and put all of the onModuleLoad of
your module and that's it ActivityManager manages the tokens and getting
back the previous status of the UI.

http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html
http://www.slideshare.net/turbomanage/secrets-of-the-gwt

above link helps you in writing Activities and Places, remember your
application need not to follow MVP always, but its best practice to manage
the application well.

Regards,
Saida.

On Wed, Nov 30, 2011 at 1:30 PM, Alexandre Ardhuin <
alexandre.ardh...@gmail.com> wrote:

> Hi,
>
> see
> http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html
>
> Alexandre
>
>
> 2011/11/30 suresh babu 
>
>> Thank you for your quick reply, so how can I manage history without using
>> MVP framework.
>>
>>
>> On Tue, Nov 29, 2011 at 10:01 PM, Thomas Broyer wrote:
>>
>>> UiBinder is about generating widget/layout code from XML, it has nothing
>>> to do with handling navigation within your app; i.e. instead of writing:
>>>
>>> this.textBox = new TextBox();
>>> this.textBox.setText("some text");
>>> this.textBox.addStyleName(cssResource.textbox());
>>> String textBoxPlaceholderId = HTMLPanel.createUniqueId();
>>> HTMLPanel htmlPanel = new HTMLPanel("" + SafeHtmlUtils.htmlEscape(myConstants.label())
>>> + " ");
>>> htmlPanel.addAndReplaceElement(textBox, textBoxPlaceholderId);
>>>
>>> initWidget(htmlPanel);
>>>
>>> you simply write:
>>> 
>>>
>>> some text
>>> 
>>>
>>> It has really nothing to do with "handing token with history".
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/google-web-toolkit/-/y5fJNj7KvDgJ.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> Regards
>> Suresh Babu G
>>
>>
>> 
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Regards,
Saida Dhanavath

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



Re: MySql Connection Problem

2011-12-01 Thread Ahmet Dakoglu
I had the same problem and find out that if you use GAE in your project
this error occurs so it is not related with your url format.

http://stackoverflow.com/questions/6773186/java-sql-sqlexception-url-is-not-in-the-correct-format

On Wed, Nov 30, 2011 at 4:01 PM, mpp4manu  wrote:

> I am new to GWT and Java programming in general.  I have am using
> Apache Geronimo to set up database pools.  Once I understood how to
> use them, my database connectivity issues went away.
>
> Here is part 1 of a 2 part tutorial on GWT, Geronimo and MySQL:
> http://www.ibm.com/developerworks/opensource/tutorials/os-ag-gwt1/
>
> This tutorial is 4 years old, so you will have to change some of the
> code to match your environment.
>
> Michael
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
*Ahmet DAKOĞLU*

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