Re: RPC call in onModuleLoad()? Is it good approach??

2010-03-26 Thread jocke eriksson
Well I am no expert on the subject but I have also seen that video. I think
the best solution is to download the data with your hostpage. But for that
scenario I think your objects needs to be overlays so you can do an eval.

2010/3/25 kozura 

> I see no reason why making RPC calls as part of the onModuleLoad
> sequence (presumably from some classes it calls, but whatever) is a
> bad thing, in fact it's good to have these called out early, so while
> the code is running to build the GUI, the RPCs are off fetching data
> in parallel.  With good design, many widgets are self-loading,
> regardless of whether they are created by onModuleLoad or some
> subsequent call.  JS is single-thread, so don't worry about the data
> getting back before the GUI is done.  I've had no problem doing this
> in my apps, so unless there is some actual compelling technical reason
> then fire away!
>
> --
> 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: Anyaware of Hadoop/HBase/BigTables

2010-03-26 Thread naga vinod kumar
Are there any opensource projects with respect to AppEngine or hadoop..?

-- 
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: Multiple entry points or multiple widgets?

2010-03-26 Thread ome
Yes, sure I've seen this. You could easily load lots of code
asynchronously using both approaches. But you will not remove
dependencies in the compile time and main module will still inherit
all other submodules, right? And if you change one module you have to
recompile everything?

On Mar 25, 7:10 pm, kozura  wrote:
> Yes!  Fantastic new feature in GWT 2.0 called Code Splitting addresses
> exactly this.  See 
> here:http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html
>
> With a good code base and intelligent partitioning of separate pieces,
> GWT will do all the dependency analysis and break off as much as
> possible into chunks that are loaded when needed at runtime.  I've
> used this with great success to partition off large chunks of code not
> needed at startup, but which might be used some point at runtime.  Now
> I can have as large an monolithic app as I want and not worry about
> the load time getting ridiculous.

-- 
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: Anyaware of Hadoop/HBase/BigTables

2010-03-26 Thread sridevi macherla
Hi Karthik,

I would like to know how to implement or the usage of BigTable/Hbase?  which
one would be best fit to hold the data around 5 TB in compressed manner.

currently ia m evulating the frameworks and would like to know what are the
other frameworks and which one will be best suited if anyone used it.

And also any docs are available on any of these?

Thanks
Sri

On Fri, Mar 26, 2010 at 12:45 PM, naga vinod kumar  wrote:

>
> Are there any opensource projects with respect to AppEngine or hadoop..?
>
>
>  --
> 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: How to customize Tree's TreeItem padding?

2010-03-26 Thread epaga
Unfortunately this doesn't help. The padding-left of the inner div of
gwt-Tree is set to 23px when the TreeItem is a leaf element and does
not have a leaf icon. See GWT's Tree.showLeafImage(). The
"indentValue" there is set to "23px" in Tree.setImages(ImageAdapter,
boolean).

FWIW, we have found a workaround now, so the issue isn't THAT
critical, but it sure feels "hacked":

.gwt-Tree > div:first-child {
  width: 0px !important;
  height: 0px !important;
  margin: 0px !important;
  padding: 0px !important;
}

Epaga

On Mar 25, 7:37 pm, Thad  wrote:
> The values in standard.css are below.  Maybe they are a starting
> point:
>
> .gwt-Tree .gwt-TreeItem {
>   padding: 1px 0px;
>   margin: 0px;
>   white-space: nowrap;
>   cursor: hand;
>   cursor: pointer;}
>
> .gwt-Tree .gwt-TreeItem-selected {
>   background: #93c2f1 url(images/hborder.png) repeat-x 0px -1463px;}
>
> .gwt-TreeItem .gwt-RadioButton input,
> .gwt-TreeItem .gwt-CheckBox input {
>   margin-left: 0px;}
>
> * html .gwt-TreeItem .gwt-RadioButton input,
> * html .gwt-TreeItem .gwt-CheckBox input {
>   margin-left: -4px;
>
> }
>
> On Mar 25, 7:00 am, epaga  wrote:
>
>
>
> > How can I change the padding in a tree's rows? It currently seems to
> > be set to
>
> > padding-top: 3px; padding-right: 3px; padding-bottom: 3px; margin-
> > left: 0px;  padding-left: 23px;
>
> > Neither styling gwt-Tree nor gwt-TreeItem seems to help.
> > I have even tried styling
>
> > .gwt-Tree > div {
> >         padding: 0px 5px !important;
>
> > }
>
> > which sort of works, but as soon as a tree row is selected, the entire
> > tree shifts to the left.
>
> > Thanks in advance for any help,
> > John Goering

-- 
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: How to customize Tree's TreeItem padding?

2010-03-26 Thread epaga
Sorry here is the full "solution"

.gwt-Tree > div:first-child {
  width: 0px !important;
  height: 0px !important;
  margin: 0px !important;
  padding: 0px !important;
}

.gwt-Tree > div {
padding: 0px 5px !important;
}

.gwt-Tree > div[hidefocus=true] {
width: 0px !important;
height: 0px !important;

margin: 0px !important;
padding: 0px !important;
}

On Mar 26, 9:41 am, epaga  wrote:
> Unfortunately this doesn't help. The padding-left of the inner div of
> gwt-Tree is set to 23px when the TreeItem is a leaf element and does
> not have a leaf icon. See GWT's Tree.showLeafImage(). The
> "indentValue" there is set to "23px" in Tree.setImages(ImageAdapter,
> boolean).
>
> FWIW, we have found a workaround now, so the issue isn't THAT
> critical, but it sure feels "hacked":
>
> .gwt-Tree > div:first-child {
>   width: 0px !important;
>   height: 0px !important;
>   margin: 0px !important;
>   padding: 0px !important;
>
> }
>
> Epaga
>
> On Mar 25, 7:37 pm, Thad  wrote:
>
>
>
> > The values in standard.css are below.  Maybe they are a starting
> > point:
>
> > .gwt-Tree .gwt-TreeItem {
> >   padding: 1px 0px;
> >   margin: 0px;
> >   white-space: nowrap;
> >   cursor: hand;
> >   cursor: pointer;}
>
> > .gwt-Tree .gwt-TreeItem-selected {
> >   background: #93c2f1 url(images/hborder.png) repeat-x 0px -1463px;}
>
> > .gwt-TreeItem .gwt-RadioButton input,
> > .gwt-TreeItem .gwt-CheckBox input {
> >   margin-left: 0px;}
>
> > * html .gwt-TreeItem .gwt-RadioButton input,
> > * html .gwt-TreeItem .gwt-CheckBox input {
> >   margin-left: -4px;
>
> > }
>
> > On Mar 25, 7:00 am, epaga  wrote:
>
> > > How can I change the padding in a tree's rows? It currently seems to
> > > be set to
>
> > > padding-top: 3px; padding-right: 3px; padding-bottom: 3px; margin-
> > > left: 0px;  padding-left: 23px;
>
> > > Neither styling gwt-Tree nor gwt-TreeItem seems to help.
> > > I have even tried styling
>
> > > .gwt-Tree > div {
> > >         padding: 0px 5px !important;
>
> > > }
>
> > > which sort of works, but as soon as a tree row is selected, the entire
> > > tree shifts to the left.
>
> > > Thanks in advance for any help,
> > > John Goering

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



Strange module import error

2010-03-26 Thread akpraha
I'm working on a framework for GWT, and have run into a rather strange
error when trying to run in hosted mode in Eclipse.  The framework has
been added to the GWT application's project as a .jar file.  It
contains a correctly formatted .gwt.xml module.  When I click on the
"GWT Compile Project" button in Eclipse, it compiles with no warnings
or errors.  However, when I run the project as a GWT web application,
it apparently cannot find the framework's module - it reports a "No
source code is available for type ..." for each class used from the
framework in the application.

The strangest thing is that this was working last night.  But today
when I try to do anything at all, it behaves quite strangely.  Anybody
else run into this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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 Parser error in hasAttributes()

2010-03-26 Thread Ignat Alexeyenko
Thanks for Your reply!

Another solution:

public boolean hasAttributes(Node node) {
   try {
   return node.hasAttributes();
   } catch (Exception e) {
   return false;
   }
}

--
Kind regards,
Ignat Alexeyenko.

On Wed, Mar 24, 2010 at 9:59 AM, pschonefeld wrote:

> this was happening for me on a text node so checked that getNodeType()
> was an element (1) and all was OK.
>
> HTH
>
> --
> 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.



GWT with i18n not displaying Apostrpohes

2010-03-26 Thread mariyan nenchev
Hi,

I am using gwt internationalization. Some of my messages contain apostrophes
but they are not displayed. I tried to put the messages in Labels and HTML,
but in both apostrophes are not displayed.

Any ideas how fix this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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.0.3 + Maven2 + Eclipse

2010-03-26 Thread Bert
Keith,

You refer to using the src/main/webapp to being the base of your
hosted mode, but how do you make the code compile GWT to that folder
and how do you add the dependencies (libs) to the meta-inf lib folder?
The reason for me being unable to use the GWT items/code is because
it's not
in the src/main/webapp folder...

Sorry for the noobie question, I understand that mvn package does al
this in the target folder, but how do you force the project to create/
update this
for the src/main/webapp folder which will serve as war directory used
by the hosted mode?

Regards

Bert

On Mar 25, 9:49 pm, Bert  wrote:
> Keith,
>
> Trying to follow the instructions I cannot find a URL field in theGWT
> tab & I'm not asked for the war directory
>
>    1. and on theGWTtab change the URL field to point to your server
> (e.g.http://localhost:8080/WebApp).
>    2. Run/Debug your new launch configuration. The first time you do
> this, you'll have to select the location of the WAR directory that WTP
> is publishing to (this is configurable, but by default it is
> /.metadata/.plugins/org.eclipse.wst.server.core/tmp0/
> wtpwebapps/).
>
> I've installed a fresh tomcat 6.0 which does run the hosted mode
> correctly without
> executing the steps that I could not perform before.
>
> If I use the mvn clean package goal, I can also run the generated war
> in my tomcat 5.5.
>
> Is it known that hosted mode does not work for tomcat 5.5?
>
> And in my hosted mode I saw that theGWTcontents do not get loaded.
> I only get the static text to display, not theGWTtextbox/Button.
>
> If I run a packaged version of the war in my tomcat, I do see theGWT
> textbox/Button and I'm able
> to perform the RPC call.
>
> Anyone familiar with this? Am I Missing some set-up for running the
> hosted mode?
>
> On 23 mrt, 16:37, Keith Platfoot  wrote:
>
> > Hi Bert,
>
> > I converted theGWTstarter app into aMavenproject (see attachment), which
> > might serve as a good starting point for you.  It usesGWT2.0.3,
> >gwt-maven-plugin 1.2, and Google Plugin for Eclipse 1.3.1.  I've also
> > included an Eclipse project and launch configuration.  To import the
> > project:
>
> >    - Ensure you have Eclipse for Java EE installed
> >    - Create a server adapter for the project (right-click in Servers via and
> >    select New).  I used Tomcat, which runs on port 8080 (this needs to be
> >    reflected in the Web Application launch configuration)
> >    - Create an M2_REPO classpath variable pointing to yourMavenrepository
> >    (Preferences > Java > Build Path).
> >    - Because the project references theGWTjars from theMavenrepo instead
> >    of a standardGWTSDK installation, you'll probably get a spurious error on
> >    the project which you can suppress via Preferences > Google >
> >    Errors/Warnings > Project structure and SDKs > Missing SDK.
>
> > Keith
>
> > On Wed, Mar 17, 2010 at 11:06 AM, Bert  wrote:
> > > I'm also very interested in setting up a Project like this.
> > > Any sample code from anyone?
>
> > > On Mar 17, 1:44 am, zggame  wrote:
> > > > I think the latestgwt-maven-plugin isgwt1.6.4.  Not2.0.3
>
> > > > On Mar 15, 3:30 pm, Sergio  wrote:
>
> > > > > Hello everybody, I'm beginning withGWTdevelopment and I have a
> > > > > problem.
>
> > > > >  I've already configured Eclipse 3.5 withgwtplugin and m2eclipse
> > > > > plugin. I create a newmavenproject withgwt-maven-plugin archetype,
> > > > > but I'm not able to communicate client side with server side. I've
> > > > > read the same problem is happened other people but no solution.
>
> > > > > I'm trying to debug the sample application withgwt:debug goal and
> > > > > then "Run remote java application" in "Debug configuration". I don't
> > > > > know if I am doing anything wrong. Any idea?
>
> > > > > Thank you and sorry for my 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.
>
> >  MavenAppRpc.zip
> > 21KWeergevenDownloaden

-- 
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 with i18n not displaying Apostrpohes

2010-03-26 Thread Thomas Broyer

On Mar 26, 10:53 am, mariyan nenchev 
wrote:
> Hi,
>
> I am using gwt internationalization. Some of my messages contain apostrophes
> but they are not displayed. I tried to put the messages in Labels and HTML,
> but in both apostrophes are not displayed.
>
> Any ideas how fix this?

Apostrophes have to be doubled in Messages.

-- 
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 with i18n not displaying Apostrpohes

2010-03-26 Thread mariyan nenchev
Will it be shown as single? My client underlined for single!
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.



Blur before click

2010-03-26 Thread Subhrajyoti Moitra
Hello,
I am implementing a suggest box in GWT 2.0.3 using a text box and table. (I
know there is a SuggestBox class, but current release of GWT does not let me
specify my own display for suggestions)

I have a blur handler on the textbox that does:

 myTextBox.addBlurHandler(new BlurHandler()
{

public void onBlur(BlurEvent blurEvent)
{

myTable.setVisible(false);

}
});

myTable is the data table to hold all the suggestion rows, and this is
shown/hidden. The above code will hide the suggestions pop-up (myTable) when
focus on the textbox is lost.

Unfortunately, blur is fired on clicking on the myTable itself to select a
row from the table. So the click on myTable is never captured.

How do i get the click event on the table before the blur is fired?

Is there a generic way to solve these problem?

Any pointers would be highly appreciated.

Thanks,
Subhro.

-- 
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: Blur before click

2010-03-26 Thread A. Kong
You may take a look at DeferredCommand

Cheers

-- 
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 with i18n not displaying Apostrpohes

2010-03-26 Thread mariyan nenchev
Hi, thanks - two single apostrophes one after another worked.

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



[Announcement] Piriti: JSON and XML mapper

2010-03-26 Thread Harald Pehl
Hi everyone,

I'm pleased to announce Piriti 0.3.1. Piriti is a JSON and XML mapper
for GWT. It is based on annotations and deferred binding. Here are
some of the features:
- Built-in support for many types (primitives, String, Date,
Enums, ..)
- Possibility to specify date and number formats
- Support for mapping arrays and collections
- Flexible XML mapping using XPath expressions
- GXT extension for mapping to GXT models
- Restlet extension built on top of the Restlet GWT edition

Resources:
- Project page: http://code.google.com/p/piriti/
- Getting started: http://code.google.com/p/piriti/wiki/GettingStarted
- Sample application: http://piriti-sample.appspot.com/

Have fun,
Harald

http://haraldpehl.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: DualList, showing lists inside a fieldset

2010-03-26 Thread Nathan Wells
I'm not clear on what you're trying to accomplish... do you have some
sample code/html that we could start with?

On Mar 26, 12:30 am, noob_boy  wrote:
> Will I have to override onRender and do something? Or will I have to
> create a totally new widget?
>
> On Mar 23, 4:58 pm, noob_boy  wrote:
>
>
>
> > Experts,
>
> > I have to show the left side and the right side lists in a duallist
> > inside fieldsets. How do I do it?
>
> > Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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.



Using gwt dispatch, are serialized objects JSON on the wire

2010-03-26 Thread TJT
Hi,

Im using GWT dispatch with the command pattern to send/recieve data
between my GWT client and server. After using a local http proxy app
to snoop on the http communication, I notice that my serialized
objects are displayed very JSON like.

So, does GWT dispatch serialize objects into JSON strings over the
wire be default?

-- 
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: Best practice for packaging a module into a jar?

2010-03-26 Thread sportrider
I'm not sure if it's a good practice

To make this work in Eclipse, I had to create virtual src folders in
each GWT application, the source of which was the source of the shared
project.

Then there is a build.xml that copies source from all required
projects into the build directory before launching the GWT compiler on
it.  The whole thing is then zipped up into the jar.

On Mar 17, 10:43 pm, francescoNemesi  wrote:
> Hi,
>
> I have a complex GWT application which is dependent on various other
> GWT projects which are inherited. The application contains both server
> and client code and it also uses external properties files.
>
> I would like to package this application into a jar which can then be
> inherited by other projects. I am looking for references/best practice/
> case scenarios on how to do this in the best way possible, given the
> complexity of the application.
>
> Any help/ideas welcome.
>
> 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: Internet Explorer 7 reloads on fragment change?

2010-03-26 Thread sportrider
I had a similar problem with IE 8 reloading the app whenever a select
element was clicked.

My app mixes SmartGWT and GWT elements.  Because I had GWT Anchor
elements constructed with the link in the constructor on the same
page, the smartgwt select control was going bonkers.  So I replaced
the GWT links with LinkElements from SmartGWT, and all was well.

Not sure if this applies to you.

On Mar 18, 9:44 am, PhilBeaudoin  wrote:
> I get a strange problem with Internet Explorer 7: some of my Hyperlink
> causes the page to unexpectedly reload. The strange thing is that I
> have two hyperlinks to the same history token on the same page, one of
> them causes the page to reload and the other one does not. The only
> difference I can see between these is that the one that causes the
> reload is deeply nested in divs and the other is close to the top.
> Otherwise, the DOM nodes are almost identical.
>
> Is this a known issue with IE 7? (All other browsers do fine,
> including IE8.) Is there a 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.



selenium unable to recognize gwt labels and ids

2010-03-26 Thread jt
Hi,
I am trying to create java automation script with selenium for web
application built on GWT. Here i am facing difficulty where selenium
records ids like this "//d...@id='x-auto-40_x-auto-96']/div/span[2]"
where it is not giving exact element name. After recording this when i
am trying to run this script it is giving error element id not found.

These are kind of side labels which if user clicks open page with
different menus.

please help me here.

thanks,
J

-- 
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: Making valid and accessible web pages with GWT

2010-03-26 Thread enTropy Fragment
I got the API url's from the wrong site. I'm using GWT 2.0 although I didn't
take a deep look at the changes from 1.7

Yes, I also mixed Accessibility stuff with Validation stuff in the mail, my
apologizes. I'd like my site to pass the validation but that's not a
priority. My priority list is accessibility > usability > validation.

Thanks for your responses

2010/3/25 Thomas Broyer 

>
>
> On Mar 24, 11:05 am, enTropy Fragment  wrote:
> > Hi!
> >
> > I am developing a web page that should be accesible. While working with
> GWT
> > I have discovered it is more focused in RIA than in creating standard and
> > good code. It is so open and powerfull that it still makes sense (to me)
> to
> > keep working with it so I just wanted to share with you the best
> practices I
> > found and the problems I could not solve yet to create a completely
> > acessible, valid and standard web. Would be nice to make this list grow
> as
> > there is almost no info about this on the Internet as far as I've found.
> >
> >- *Tables* - Almost all GWT Panels end up transformed in html tables,
> >this shouldn't happen
> >   - Affects to: All Panels that extend
> > *CellPanel<
> http://www.asquare.net/gwt/javadoc/1.0.21/src-html/com/google/gwt/use...>
>
> Er, are you *really* looking at the javadoc and source for of GWT
> 1.0.21 ???
> How about reading up-to-date things instead? e.g. http://gwt.google.com/
>
> >*(this includes
> > DockPanel<
> http://www.asquare.net/gwt/javadoc/1.0.21/com/google/gwt/user/client/...>
> >   , HorizontalPanel<
> http://www.asquare.net/gwt/javadoc/1.0.21/com/google/gwt/user/client/...>
> >   , VerticalPanel<
> http://www.asquare.net/gwt/javadoc/1.0.21/com/google/gwt/user/client/...>
> >   )
>
> AFAIK, at the time they were written that was the "easiest" solution
> to have a reliable rendering in all/most browsers without resorting to
> too much hacks. At that time, GWT wasn't at all "accessible" (it's
> slightly better now, as some widgets now set the appropriate ARIA
> role, such as PushButton, ToggleButton and CustomButton)
>
> >   - Solution I found: Use other panels, for instance
> > *FlowPanel*<
> http://www.asquare.net/gwt/javadoc/1.0.21/src-html/com/google/gwt/use..
> .>(wich
> >   becomes an html div) + some css for each panel
>
> Yes, or layout panels as pointed by Kozura.
>
> >- *Missing html elements* - There are some elements that are quite
> >important for creating an accessible web
> >   - Affects to: Ordered / Unordered lists. All the headings (tags
> )
> >   - Solution I found: Either implement them or use
> > *HTML*<
> http://www.asquare.net/gwt/javadoc/1.0.21/src-html/com/google/gwt/use...>
> >   instead
>
> I'd rather use an HTMLPanel and/or UiBinder. But they're not required
> for proper accessibility. AFAIK, Google Reader and GMail (among
> others) are pretty "accessible" and they don't use lists and titles.
> Appropriate ARIA roles and properties might be enough.
>
> >- *Missing TAG option* for
> > *Image*<
> http://www.asquare.net/gwt/javadoc/1.0.21/src-html/com/google/gwt/use...>-
> >This is a mandatory attribute for html images. setTitle claims to be
> the way
> >but in the end it becomes a "title="something"" instead of
> tag="something"
> >so it doesn't work
> >   - Affects to:
> > *Image<
> http://www.asquare.net/gwt/javadoc/1.0.21/src-html/com/google/gwt/use...>
> >   *
> >   - Solution I found: none
>
> (supposing you mean "alt" rather than "tag") it's been added recently
> though unfortunately was forgotten in the recent releases (will be in
> the next one):
>
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/ui/Image.java#541
>
> >- GWT adds script tags without a *type attribute*, wich prevents the
> web
> >pass the validation tests
>
> Which script elements are you talking about?
> And the type attribute is no longer required in HTML (starting with
> HTML5), as all browsers default to interpreting the script as
> JavaScript in this case.
> ...and validation is orthogonal to accessibility.
>
> >- GWT uses a *tabindex attribute* for the history iframe. This
> attribute
> >is not valid for html4.01 transitional so the web won't validate again
>
> same as above. validity != accessibility != usability. You don't want
> your users to be able to "tab" to the hidden iframe, would you?
>
> --
> 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-to

Re: RPC call in onModuleLoad()? Is it good approach??

2010-03-26 Thread mmoossen
we do generate json data in the host page (with JSP) to save that
first RPC.

HTH
Michael

On Mar 26, 8:11 am, jocke eriksson  wrote:
> Well I am no expert on the subject but I have also seen that video. I think
> the best solution is to download the data with your hostpage. But for that
> scenario I think your objects needs to be overlays so you can do an eval.
>
> 2010/3/25 kozura 
>
> > I see no reason why making RPC calls as part of the onModuleLoad
> > sequence (presumably from some classes it calls, but whatever) is a
> > bad thing, in fact it's good to have these called out early, so while
> > the code is running to build the GUI, the RPCs are off fetching data
> > in parallel.  With good design, many widgets are self-loading,
> > regardless of whether they are created by onModuleLoad or some
> > subsequent call.  JS is single-thread, so don't worry about the data
> > getting back before the GUI is done.  I've had no problem doing this
> > in my apps, so unless there is some actual compelling technical reason
> > then fire away!
>
> > --
> > 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: Piriti: JSON and XML mapper

2010-03-26 Thread mmoossen
looks great, i will give it a try.

thanks for sharing
Michael

On Mar 26, 1:29 pm, Harald Pehl  wrote:
> Hi everyone,
>
> I'm pleased to announce Piriti 0.3.1. Piriti is a JSON and XML mapper
> for GWT. It is based on annotations and deferred binding. Here are
> some of the features:
>     - Built-in support for many types (primitives, String, Date,
> Enums, ..)
>     - Possibility to specify date and number formats
>     - Support for mapping arrays and collections
>     - Flexible XML mapping using XPath expressions
>     - GXT extension for mapping to GXT models
>     - Restlet extension built on top of the Restlet GWT edition
>
> Resources:
>     - Project page:http://code.google.com/p/piriti/
>     - Getting started:http://code.google.com/p/piriti/wiki/GettingStarted
>     - Sample application:http://piriti-sample.appspot.com/
>
> Have fun,
> Harald
>
> http://haraldpehl.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: Blur before click

2010-03-26 Thread Subhrajyoti Moitra
Hello,
Thanks for the reply. A little more explanation would really help.:)
Is this what I am supposed to do?


myTextBox.addBlurHandler(new BlurHandler()
{

public void onBlur(BlurEvent blurEvent)
{
   DeferredCommand.addCommand(new Command() {

public void execute() {
GWT.log("Text box blurred...");
myTable.setVisible(false);

}
});

}
});

Code for loading this table is currently as follows:


//make the RPC call.
ussa.querySuggestions(queriedText, parameters,  new
AsyncCallback>()
{
public void onFailure(Throwable t)
{
//DO something.
}

public void onSuccess(List
serverResults)
{
int suggestionsNumber = serverResults.size();
if (suggestionsNumber > 0)
{
myTable.removeAllRows();

for (int i = 0; i < suggestionsNumber; i++)
{
String suggestion =
serverResults.get(i).getSuggestion();
//load each MyHtml into the myTable rows.
myHtml = new MyHtml(getSuggestBox(),
suggestion);
myHtml.addClickHandler(new ClickHandler()
{

public void onClick(ClickEvent clickEvent)
{
GWT.log("Widget clicked...");

}
});
myTable.setWidget(i, 0, myHtml);
}
if (!(myTable.isVisible()))
{
myTable.setVisible(true);
}
}
requestInProgress = false;
}
});


Do I have to do something more to get the clicks before the blur?

Please help...

thanks,
Subhro.

-- 
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: Internet Explorer 7 reloads on fragment change?

2010-03-26 Thread Thomas Broyer


On Mar 18, 8:27 pm, PhilBeaudoin  wrote:
> If you want to see this yourself, go 
> tohttp://filouguestbook.appspot.com/#!main
> sign-in with a google account and click on the Settings link the the
> top bar. Switch between the General and Accounts pages, the app will
> reload. From the Accounts page, click on Settings in the top bar, this
> will switch tab but not reload!

I don't know how you added your Hyperlinks to your page, but they're
not "attached" (their getElement() is added to the DOM, but events are
not sunk).
This means your Hyperlinks are actually just Anchors and you're
hitting this bug:
http://code.google.com/p/google-web-toolkit/issues/detail?id=2152

-- 
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: Error while installing Google Plugin for (Fedora) Eclipse 3.5.1

2010-03-26 Thread Rajeev Dayal
Thanks, it is in the Labels section (if you click in one of the boxes). I
added the EclipsePlugin label for you.

On Thu, Mar 25, 2010 at 6:02 PM, Randell
wrote:

> I filed it here:
> http://code.google.com/p/google-web-toolkit/issues/detail?id=4791, although
> I didn't see any fields to indicate EclipsePlugin.
>
> On Wed, Mar 24, 2010 at 10:36 PM, Rajeev Dayal  wrote:
>
>> Ha, hopefully you won't encounter too many! You can file an issue via this
>> URL:
>>
>> http://code.google.com/p/google-web-toolkit/issues/list
>>
>> When choosing a category, choose EclipsePlugin.
>>
>> On Wed, Mar 24, 2010 at 4:23 AM, Randell <
>> josephrandell.benavi...@gmail.com> wrote:
>>
>>>
>>>
>>> On Mon, Mar 22, 2010 at 10:30 PM, Rajeev Dayal wrote:
>>>
 HI Randell,

 Good point - do you mind filing an issue for this?

>>>
>>> Sure thing. How can I file an issue? I'd like to learn how since I'll
>>> probably be encountering a lot of issues.
>>>
>>> --
>>> 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-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.
>>
>
>
>
> --
> http://randell.ph/
>
> --
> 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: import java.io.File help

2010-03-26 Thread Thad
Write an RPC that gets the directory information, formats it as JSON
or XML, and return that string to your client.  In your client,
display the information however it makes sense.

Remember, in the ./client directory, you can't do anything that has no
equivalent in HTML.

On Mar 25, 6:38 pm, Chris  wrote:
> can gwt use this java class?  if not, are there any ways around that
> if I want to create a list of all the files in a particular directory?
>
> 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: Blur before click

2010-03-26 Thread kozura
You probably want to be a bit more sophisticated, since other
manipulations you may do with the table, like scrolling/moving through
choices may also cause your textbox to lose focus.  I'd put some mouse
over/out listeners on the popup so you know if the mouse is inside of
it, and set a flag so you know not to hide it if the mouse is in it.
Then maybe also hide it separately when the user makes a selection.
Will take some experimentation with permutations of these events to
get the effect you're looking for.

-- 
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: Piriti: JSON and XML mapper

2010-03-26 Thread Thad
This looks good.  However I mostly deal with others XML formats, so
two questions:

1) Any thoughts on when handing of attributes may be added?

2) How does Piriti handle optional, missing, and empty elements?  As
in your example, what if  is missing , or if
 is either  or ?

On Mar 26, 8:29 am, Harald Pehl  wrote:
> Hi everyone,
>
> I'm pleased to announce Piriti 0.3.1. Piriti is a JSON and XML mapper
> for GWT. It is based on annotations and deferred binding. Here are
> some of the features:
>     - Built-in support for many types (primitives, String, Date,
> Enums, ..)
>     - Possibility to specify date and number formats
>     - Support for mapping arrays and collections
>     - Flexible XML mapping using XPath expressions
>     - GXT extension for mapping to GXT models
>     - Restlet extension built on top of the Restlet GWT edition
>
> Resources:
>     - Project page:http://code.google.com/p/piriti/
>     - Getting started:http://code.google.com/p/piriti/wiki/GettingStarted
>     - Sample application:http://piriti-sample.appspot.com/
>
> Have fun,
> Harald
>
> http://haraldpehl.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: RPC call in onModuleLoad()? Is it good approach??

2010-03-26 Thread kozura
Ah I see, the point is to avoid the extra round trip time of the first
RPC call.  For most cases, it's probably not worth the extra effort
and complication - note that most web pages make many many more round
trip calls to load all the images etc.  In that video, it sounds like
most of their services return a simple HTML string that they push into
innerHTML, which would be straightforward to bundle with the initial
code download.  This becomes more complicated with real data.

So I think the correct answer is, try it the straightforward way (just
make the RPC call), and if you find the performance unacceptable then
look into something like this - especially for someone just learning
GWT!

-- 
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: Piriti: JSON and XML mapper

2010-03-26 Thread Christian Goudreau
Nice !

I'm looking forward to see compatibility with List albums !

Good work

Christian

On Fri, Mar 26, 2010 at 12:01 PM, Thad  wrote:

> This looks good.  However I mostly deal with others XML formats, so
> two questions:
>
> 1) Any thoughts on when handing of attributes may be added?
>
> 2) How does Piriti handle optional, missing, and empty elements?  As
> in your example, what if  is missing , or if
>  is either  or ?
>
> On Mar 26, 8:29 am, Harald Pehl  wrote:
> > Hi everyone,
> >
> > I'm pleased to announce Piriti 0.3.1. Piriti is a JSON and XML mapper
> > for GWT. It is based on annotations and deferred binding. Here are
> > some of the features:
> > - Built-in support for many types (primitives, String, Date,
> > Enums, ..)
> > - Possibility to specify date and number formats
> > - Support for mapping arrays and collections
> > - Flexible XML mapping using XPath expressions
> > - GXT extension for mapping to GXT models
> > - Restlet extension built on top of the Restlet GWT edition
> >
> > Resources:
> > - Project page:http://code.google.com/p/piriti/
> > - Getting started:
> http://code.google.com/p/piriti/wiki/GettingStarted
> > - Sample application:http://piriti-sample.appspot.com/
> >
> > Have fun,
> > Harald
> >
> > http://haraldpehl.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.
>
>

-- 
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: Piriti: JSON and XML mapper

2010-03-26 Thread Harald Pehl
Hi Thad,

> 1) Any thoughts on when handing of attributes may be added?

Mapping of attributes is already implemented: Using an XPath
expression like

@XmlField("/contact/@kind")
String kind;

you can map to the kind attribute of the contact element

...


Is this what you're looking for?


> 2) How does Piriti handle optional, missing, and empty elements?  As
> in your example, what if  is missing , or if
>  is either  or ?

When the XPath expression of the @XmlField annotation does not select
data,
the field is left unchanged. In other words, if there is no 
element,
the author field will be null. Same for missing and optional elements.

HTH
Harald

-- 
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: Multiple entry points or multiple widgets?

2010-03-26 Thread kozura
Well I'm not sure what you mean by the main module "inheriting" the
submodules.   From what you described, the main module sets up the
general framework of the page, and then insert the various, fairly
independent submodules based on data or user interactions.

This is exactly what code splitting is designed for.  Yes, you are
still writing the whole thing as one giant monolithic application.
But if the submodules are written as fairly independent components
with a small number of entry points and few (best: no) places where
the main app makes specific calls into particular submodules (read:
use Observers or abstract classes/interfaces), then you can set up
those entry points as code splits.  GWT then uses aggressive
dependency checking to optimally fragment the code to only load what
is needed for a given module when it gets used.  So you get the best
of both approaches - you can write your application without having to
deal with the complexities of splitting it up into multiple
components, but still get the huge benefits of optimal dynamic
loading.

This works especially well if the framework you are using is pure GWT
java, vs a wrapped javascript library.  The dependency checking is at
the method level, so it will figure out what pieces of the framework
each code split needs, and as more submodules are loaded will ensure
the correct bits of framework are also loaded.

As you mention, the GWT compiler does operate on the entire
application, so it recompiles everything, every time.  If you're using
OOPHM for development, this really mainly impacts deployment time.

So again I highly recommend this method for this type of application,
let the tool do the work rather than trying to come up with a
complicated scheme that will be suboptimal and hard to maintain.

On Mar 26, 2:27 am, ome  wrote:
> Yes, sure I've seen this. You could easily load lots of code
> asynchronously using both approaches. But you will not remove
> dependencies in the compile time and main module will still inherit
> all other submodules, right? And if you change one module you have to
> recompile everything?

-- 
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: Internet Explorer 7 reloads on fragment change?

2010-03-26 Thread PhilBeaudoin
Thanks Thomas,

This seems to be exactly the problem I'm having. Although I have
absolutely no clue why the Hyperlinks are not "attached". The
Hyperlink is inside a Composide that I build using UiBinder. I take
care to call initWidget() This Hyperlink is then added to my tab panel
composite. Maybe this panel isn't attached to the DOM at that point,
but I don't think this should cause a problem? Any idea of what might
be going wrong?

Also, a quick question: How did you figure out that the hyperlinks
didn't sink the events? Which debugging tool are you using?

On Mar 26, 6:52 am, Thomas Broyer  wrote:
> On Mar 18, 8:27 pm, PhilBeaudoin  wrote:
>
> > If you want to see this yourself, go 
> > tohttp://filouguestbook.appspot.com/#!main
> > sign-in with a google account and click on the Settings link the the
> > top bar. Switch between the General and Accounts pages, the app will
> > reload. From the Accounts page, click on Settings in the top bar, this
> > will switch tab but not reload!
>
> I don't know how you added your Hyperlinks to your page, but they're
> not "attached" (their getElement() is added to the DOM, but events are
> not sunk).
> This means your Hyperlinks are actually just Anchors and you're
> hitting this 
> bug:http://code.google.com/p/google-web-toolkit/issues/detail?id=2152

-- 
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 RPC Thread safe

2010-03-26 Thread Paul Robinson
Making something thread safe can be complicated, depending on what
you're doing. Throwing a few "synchronized" keywords around the place
without understanding what it really means and what the consequences are
may cause you trouble. Threading is somewhat off topic for this forum -
you'd be better off looking for a java forum, or else you could try the
O'Reilly Java Threads book:
http://oreilly.com/catalog/9781565922167

The book's quite old now, but Java threading hasn't changed since it was
written.

Paul

Ho Jimmy wrote:
> 2010/3/25 Lothar Kimmeringer  >
>
> Ho Jimmy schrieb:
>
> > I am new to GWT. So, this is a newbie question but I have google
> it a
> > while but I am not able to find a simple example.
> > How can I create the servlet thread safe? For traditional
> servlet, we
> > use Threadlocal. So how can we define the similiar for GWT RPC
> servlet?
> > Pls also describe a bit about the thread pool and I can have some
> > direction of my learning.
>
> The RPC-servlet is a regular servlet, so the way you solved
> it with other servlets should work there as well. Personally
> I ensure thread safety by not using global variables. Parts
> that use concurrent resources I put into a synchronized block.
>
>
> Regards, Lothar
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To post to this group, send email to
> google-web-toolkit@googlegroups.com
> .
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>  
> Thank you for the replys. Can you please post a very simple example on
> how the variables are accessed one thread at a time and how they are
> shared by different threads? This example can make this step solid for
> me because I dont know either how to test the servlet is thread safe
> or not.
>  
> Thanks a lot
> -- 
> 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.



running gwt visualisation sample

2010-03-26 Thread imgnik
so how do i run the samples of gwt visualisation?

I am using eclipse.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: Internet Explorer 7 reloads on fragment change?

2010-03-26 Thread Thomas Broyer


On Mar 26, 5:42 pm, PhilBeaudoin  wrote:
> Thanks Thomas,
>
> This seems to be exactly the problem I'm having. Although I have
> absolutely no clue why the Hyperlinks are not "attached". The
> Hyperlink is inside a Composide that I build using UiBinder. I take
> care to call initWidget() This Hyperlink is then added to my tab panel
> composite. Maybe this panel isn't attached to the DOM at that point,
> but I don't think this should cause a problem? Any idea of what might
> be going wrong?

How are you adding the Hyperlink to your Composite? (I mean, could you
show the code? the one from inside the Composite, that takes an
Hyperlink as input and "adds it" so it's visible to the user)

> Also, a quick question: How did you figure out that the hyperlinks
> didn't sink the events? Which debugging tool are you using?

I was using Chrome, because I had an idea of what the problem might be
(as I was aware of the linked bug), but I could have used Internet
Explorer.
Chrome's Web Developer tools have this wonderful thing that they're
able to tell you whether a given object has event listeners (and of
course, which ones), and in this case there wasn't any.
I then looked for a __listener and/or __eventBits expando property,
because that's how GWT "binds event handlers" (done in widget's
onAttach) and there wasn't, confirming onAttach() wasn't called on the
widget. This is a symptom of adding the "widget" by just adding its
getElement() to the DOM, instead of adding it to a container widget
(some Panel).

-- 
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: Internet Explorer 7 reloads on fragment change?

2010-03-26 Thread PhilBeaudoin
Bingo! Thanks to your help I figured it out. The container of the
Hyperlink composite was an HTMLPanel. I couldn't use
HTMLPanel.add(Widget, String) because I had no "id"ed div in which to
add the widget. So I did the insert at the element level :
 
tabPanel.getElement().insertBefore( newTab.asWidget().getElement(),
addBeforeElement );
I never realized that this bypassed some essential GWT code...

I solved the problem by making tabPanel a FlowPanel inside the
HTMLPanel and inserting the tab widgets inside that flow panel via
add(Widget, int) :
tabPanel.insert(newTab.asWidget(), beforeIndex);

This seems to work fine.

Re: Debugging tricks

Thanks a lot! I've been using Chrome Web Developer tools quite a bit,
but I didn't know enough about GWT's internal to look for __listener
or __eventBits. I'll watch out for these in the future.

Cheers,

Philippe

On Mar 26, 10:07 am, Thomas Broyer  wrote:
> On Mar 26, 5:42 pm, PhilBeaudoin  wrote:
>
> > Thanks Thomas,
>
> > This seems to be exactly the problem I'm having. Although I have
> > absolutely no clue why the Hyperlinks are not "attached". The
> > Hyperlink is inside a Composide that I build using UiBinder. I take
> > care to call initWidget() This Hyperlink is then added to my tab panel
> > composite. Maybe this panel isn't attached to the DOM at that point,
> > but I don't think this should cause a problem? Any idea of what might
> > be going wrong?
>
> How are you adding the Hyperlink to your Composite? (I mean, could you
> show the code? the one from inside the Composite, that takes an
> Hyperlink as input and "adds it" so it's visible to the user)
>
> > Also, a quick question: How did you figure out that the hyperlinks
> > didn't sink the events? Which debugging tool are you using?
>
> I was using Chrome, because I had an idea of what the problem might be
> (as I was aware of the linked bug), but I could have used Internet
> Explorer.
> Chrome's Web Developer tools have this wonderful thing that they're
> able to tell you whether a given object has event listeners (and of
> course, which ones), and in this case there wasn't any.
> I then looked for a __listener and/or __eventBits expando property,
> because that's how GWT "binds event handlers" (done in widget's
> onAttach) and there wasn't, confirming onAttach() wasn't called on the
> widget. This is a symptom of adding the "widget" by just adding its
> getElement() to the DOM, instead of adding it to a container widget
> (some Panel).

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



closing port

2010-03-26 Thread imgnik
if my gwt project did not terminate properly, the localhost port will
still be occupied.

how do i close that manually? it is giving me error saying port is in
use.

-- 
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: help integrating GWT project to an existing Web Project (on Tomcat) within Eclipse

2010-03-26 Thread Keith Platfoot
Hey all,

Ok, now that the Google Plugin for Eclipse 1.3.2 is out, here are some
instructions for setting up a GWT application split across multiple projects
(client, server, and shared code in separate projects).  Note that this will
*only *work in *Eclipse for Java EE* with *GPE 1.3.2*, so verify that you
have both installed before attempting.  This procedure *won't* work if
you're using App Engine, since there is no WTP server adapter for App
Engine.

Also, I'm assuming that your application uses *GWT 2.0.3* and you're using
GWT RPC, so your server will provide at least one RPC service.  If you're
not using RPC, just skip the relevant parts,

   1. Create 3 projects: we'll call them FooServer, FooClient, and FooShared
   for the purposes of this walkthrough.  FooClient will contain your GWT
   client-side code, FooServer will contain your server-side code and WAR
   directory + static resources (HTML, CSS, etc.), and FooShared will contain
   code that is shared between the client and server (e.g. GWT RemoteService
   interfaces).  FooServer should be a Dynamic Web Project; FooClient and
   FooShared can be regular Java projects.
   2. Enable GWT for all 3 projects (project properties > Google > Web
   Toolkit).  *NOTE: If you're not using GWT RPC, you don't need to enable
   GWT on FooServer*).
   3. If your project uses the Apache Tomcat library, ensure that the GWT
   SDK library is above it on your project's classpath (project properties >
   Java Build Path > Order and Export). Otherwise, you may get a
   java.lang.NoSuchMethodError when launching your application in development
   mode.
   4. Add code to FooClient. You'll need at least one GWT module and an
   entrypoint class.  If you're using GWT RPC, you'll also need your service
   async interfaces as well (see the GWT docs for more details).  If don't have
   existing code to work with, just generate a new Web Application project and
   pilfer the files from there (renaming things as necessary, of course).
   5. Add code to FooShared.  If you're using GWT RPC, this is where your
   RPC synchronous interfaces go.  Also, any classes that you use on both the
   client and the server should go here.
   6. Add code to FooServer.  Add your HTML pages, CSS files, etc. to
   WebContent.  If you're using GWT RPC, your RPC servlet code lives in
   FooServer.  Update WebContent/WEB-INF/web.xml to point to your welcome page,
   set your servlet mappings, etc.
   7. Link the projects.  Add FooShared as a project dependency of FooClient
   (project properties > Java Build Path > Projects).  Add FooShared as a
   module dependency of FooServer (projects properties > Java EE Module
   Dependencies).  If you're using GWT RPC, you'll also need to add the
   gwt-servlet.jar as a module dependency of FooServer.  Eclipse will ensure
   that your runtime WAR directory's WEB-INF/lib and WEB-INF/classes will
   always contain up-to-date copies of its module dependencies.
   8. All 3 projects should now compile, but if you're using GWT RPC you
   probably have some errors caused by missing asynchronous interfaces.  Of
   course, ours aren't missing, they're just in a different project
   (FooClient).  Ignore the errors via Preferences > Google > Errors/Warnings >
   GWT Remote Procedure Calls (RPC).
   9. Set up a server for FooServer.  If you don't already have a server
   configured, right-click inside the Servers view and select New > Server.
Use the server of your choice (I used Tomcat v6) and add FooServer to it.
If you already have a server, you can link it by right-clicking it and
   selecting Add and Remove.
   10. Start FooServer's server.
   11. Create a Web Application launch configuration for FooClient.  The
   default main type will be GWTShell; change this to com.google.gwt.DevMode.
On the Server tab, uncheck the box: Run built-in server (we'll use
   FooServer's server instead).  On the GWT tab, enter the URL for the GWT host
   page in the URL field.  This will be the address of FooServer's server plus
   FooServer's context root (project props > Web Project Settings).  In my
   case, the startup URL is: http://localhost:8080/Foo
   12. Run the new launch configuration.  The first time you launch, you'll
   be prompted to select the runtime WAR directory.  Select the staging
   directory WTP created for FooServer.  This location is configurable but by
   default it is: /.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/.
   13. In the Development Mode view that appears at the bottom of the
   workbench, there should be a URL displayed.  Right-click and select Copy,
   then paste this into your web browser's address bar.  If your browser
   doesn't have the GWT Developer Plugin installed, you'll be redirected to a
   page where you can install it.
   14. If all went well, you now have your GWT code running in development
   mode on top of your custom server.  You should be able to edit code in any
   of the 3 projects and have 

Re: RPC call in onModuleLoad()? Is it good approach??

2010-03-26 Thread Yogesh
Hi Guys,

I am glad that I know 2 approaches now.

As said by Kozura, I guess the best thing for me to do is try both the
approaches and decide based on performance.

Thanks to all for the replies.

Have a nice weekend!

On Mar 26, 5:05 pm, kozura  wrote:
> Ah I see, the point is to avoid the extra round trip time of the first
> RPC call.  For most cases, it's probably not worth the extra effort
> and complication - note that most web pages make many many more round
> trip calls to load all the images etc.  In that video, it sounds like
> most of their services return a simple HTML string that they push into
> innerHTML, which would be straightforward to bundle with the initial
> code download.  This becomes more complicated with real data.
>
> So I think the correct answer is, try it the straightforward way (just
> make the RPC call), and if you find the performance unacceptable then
> look into something like this - especially for someone just learning
> GWT!

-- 
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.0.3 + Maven2 + Eclipse

2010-03-26 Thread Keith Platfoot
Hey Bert,

Based on your observations (static text is visible, but no GWT widgets), it
does look like hosted mode is not running on your project.  This
*probably* means
the process never got a -war argument, which would make sense since you
mentioned that you were not prompted for the WAR directory.  You also
mentioned not seeing the URL field in the GWT tab.  These 2 issues
*could*both be the result of a bug in GPE (Google Plugin for Eclipse)
1.3.0.  Both
are fixed in the latest (1.3.2), so double-check that you've got that
version installed.  Ensure that your project is configured correctly.  In
project properties > Google > Web Application, you should have your WAR
directory set to 'src/main/webapp', but the box underneath labeleled 'Launch
and deploy from this directory' should be *unchecked*.  I'll explain why in
just a bit.  Also, it's worth deleting your old launch configuration and
starting with a new one.

In your new launch configuration, if your main type is DevMode (or
HostedMode, for GWT 1.6/1.7) and you *uncheck* the "Run built-in server" box
on the Server tab, you should definitely see the URL field on the GWT tab.
 If you don't, that sounds like a bug.  Even so, you can work around it by
just inserting the -startupUrl http://whatever manually on the Arguments
tab.  When you launch, you should be prompted for the runtime WAR directory
(you can find the default WTP staging path in step 6 of
http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee).
 If for some reason you're not prompted, you can also enter that value
manually by adding a -war /path/to/wtp/staging/dir argument.

On the subject of the WAR directory: you actually don't want dev mode/hosted
mode to use src/main/webapp.  If you do, you'll have to populate that
directory with all the jars and class files needed by your server code, and
hosted mode will generate some files there as well.  However, because this
is a *src* directory, you don't really want your dependencies and generated
files in there (which presumably means they'll end up checked into your
version control system was well).

What you really want to do is let Eclipse for Java EE generate a complete
WAR directory for you, based on the contents of src/main/webapp and your EE
module dependencies (project properties > Java EE Module Dependencies).
 Module dependencies are jars that should end up in WEB-INF/lib, as well as
class files that need to be in WEB-INF/classes.  Eclipse for Java EE will
take care of copying everything where it needs to be, both during
development when you're testing against your local server (Tomcat, Jetty,
etc.), and when you export the project as a WAR file.

On the GWT side, you just have to point hosted mode at the WAR directory
that Eclipse sets up for you.  Hosted mode does't need any compiled
JavaScript to be present in the WAR ahead of time; it will get everything it
needs via the source folders on the launch classpath.  When you make
changes, no class files need to be copied; when you refresh hosted mode GWT
will just grab the updated .java source files directly from the launch
classpath.

Hopefully that all makes sense.  Let me know if you're still getting stuck,

Keith

On Fri, Mar 26, 2010 at 6:02 AM, Bert  wrote:

> Keith,
>
> You refer to using the src/main/webapp to being the base of your
> hosted mode, but how do you make the code compile GWT to that folder
> and how do you add the dependencies (libs) to the meta-inf lib folder?
> The reason for me being unable to use the GWT items/code is because
> it's not
> in the src/main/webapp folder...
>
> Sorry for the noobie question, I understand that mvn package does al
> this in the target folder, but how do you force the project to create/
> update this
> for the src/main/webapp folder which will serve as war directory used
> by the hosted mode?
>
> Regards
>
> Bert
>
> On Mar 25, 9:49 pm, Bert  wrote:
> > Keith,
> >
> > Trying to follow the instructions I cannot find a URL field in theGWT
> > tab & I'm not asked for the war directory
> >
> >1. and on theGWTtab change the URL field to point to your server
> > (e.g.http://localhost:8080/WebApp).
> >2. Run/Debug your new launch configuration. The first time you do
> > this, you'll have to select the location of the WAR directory that WTP
> > is publishing to (this is configurable, but by default it is
> > /.metadata/.plugins/org.eclipse.wst.server.core/tmp0/
> > wtpwebapps/).
> >
> > I've installed a fresh tomcat 6.0 which does run the hosted mode
> > correctly without
> > executing the steps that I could not perform before.
> >
> > If I use the mvn clean package goal, I can also run the generated war
> > in my tomcat 5.5.
> >
> > Is it known that hosted mode does not work for tomcat 5.5?
> >
> > And in my hosted mode I saw that theGWTcontents do not get loaded.
> > I only get the static text to display, not theGWTtextbox/Button.
> >
> > If I run a packaged version of the war in my tomcat, I do see theGWT
> > textb

Re: import java.io.File help

2010-03-26 Thread Chris
Thanks!

On Mar 26, 9:23 am, Thad  wrote:
> Write an RPC that gets the directory information, formats it as JSON
> or XML, and return that string to your client.  In your client,
> display the information however it makes sense.
>
> Remember, in the ./client directory, you can't do anything that has no
> equivalent in HTML.
>
> On Mar 25, 6:38 pm, Chris  wrote:
>
>
>
> > can gwt use this java class?  if not, are there any ways around that
> > if I want to create a list of all the files in a particular directory?
>
> > 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: GWT 2.0.3 + Maven2 + Eclipse

2010-03-26 Thread Karthik Abram
Use the gwt-maven-plugin version 1.2-SNAPSHOT to have your project
work with GWT 2.x

-- 
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: selenium unable to recognize gwt labels and ids

2010-03-26 Thread Sripathi Krishnan
Use the method ensureDebugId(), or in UI binder use the attribute debugId to
set IDs for selenium. This is the recommended way to get selenium working
with GWT.


--Sri



On 26 March 2010 07:37, jt  wrote:

> Hi,
> I am trying to create java automation script with selenium for web
> application built on GWT. Here i am facing difficulty where selenium
> records ids like this "//d...@id='x-auto-40_x-auto-96']/div/span[2]"
> where it is not giving exact element name. After recording this when i
> am trying to run this script it is giving error element id not found.
>
> These are kind of side labels which if user clicks open page with
> different menus.
>
> please help me here.
>
> thanks,
> J
>
> --
> 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.



Why would you ever want to include every serializable subtype of Object?

2010-03-26 Thread Sean Stephenson
I've brought this up before on different forums, but it keeps coming
back to bite me.  I know exactly which types I want to be serialized,
and with the new RPC blacklists/whitelists I have control over what
gets put in my serialization policy (thank you!).  In my case, I do
something like this to ensure that only the specific collections I
want are allowed:








However, there are times when I don't want to use generics with one of
these collections.  If I ever have an RPC service with a return type
of plain ArrayList, I get the following output when compiling GWT:

Return type: java.util.ArrayList
   java.util.ArrayList
  Verifying instantiability
 java.util.ArrayList
[WARN] Checking all subtypes of Object which qualify for
serialization

My question is, when would this behavior ever be desirable?  Would you
ever want to deploy a GWT app where this was happening?  Furthermore,
it prints this warning even if I use an rpc blacklist (at least I
haven't been able to get it to go away).  Digging into the GWT source
code, I see this in SerializableTypeOracleBuilder.java, line 1228:

if (isRawMapOrRawCollection(classOrInterface)) {
/*
 * Backwards compatibility. Raw collections or maps force all
object
 * subtypes to be considered.
 */
checkAllSubtypesOfObject(logger, parent, problems);
}

I don't need this for backward compatibility.  Let's add a module
property on RemoteService.gwt.xml that will allow this behavior to be
turned off.  Thoughts?

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



devmode noserver breakpoints

2010-03-26 Thread Peter Warren
I'm using the Developer Plugin for Firefox 3.6.2 with the -noserver
flag in my Eclipse Plugin launch config.  The GWT code server launches
fine and Firefox retrieves and executes my GWT app, but my breakpoints
are never hit.  This seems to be a common problem usually resolved by
recompiling with GWT 2.0 to make sure a current hosted.html is
generated.  I've recompiled and verified that my web server has a
current hosted.html in the webapp folder but still my breakpoints
don't get hit.

Can anyone give me some pointers?  There are no error messages in my
development mode console.

My Eclipse launch arguments look like this:

-noserver -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -
startupUrl http://localhost/myapp/test.html -logLevel ALL -war C:\Users
\Peter\dev\myapp\war com.myapp.MyApp

My launch url in my browser looks like this:

http://localhost/myapp/test.html?gwt.codesvr=127.0.0.1:9997

Thanks for any help,
Peter

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



Google Gadgets - How to debug a GWT Gadget using OOPH

2010-03-26 Thread BR
Does anyone know how?

Since in a gadget container the gadget cannot get access to the
frame's URL, it can't check for the codesvr param. The gadget seems to
be in its own iframe, but i have not figured out how to add the
codesvr parameter to that.

I added the xs linker to the compile.

Any thoughts?

Thanks!
Benjamin

-- 
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 Google Gadget RPC call fails with StatusCodeException (status code: 0)

2010-03-26 Thread BR
Hi,

I have a Google Gadget that is trying to make an RPC call (standard
GWT RPC). The endpoint URL for the service is correct.

When debugging in Firebug, I get the following:

The client seems to send an OPTIONS with the endpoint URL to the
server, which returns the correct response: headers with POST.

I then never see a POST.

In the code itself, the RPC callback gets a failure,
StatusCodeException. The status code is 0.

I am stumped. Anyone's run into this?

Thanks,
Benjamin

-- 
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 Google Gadget RPC call fails with StatusCodeException (status code: 0)

2010-03-26 Thread BR
I should also add that this is on an igoogle page.

On Mar 26, 4:49 pm, BR  wrote:
> Hi,
>
> I have a Google Gadget that is trying to make an RPC call (standard
> GWT RPC). The endpoint URL for the service is correct.
>
> When debugging in Firebug, I get the following:
>
> The client seems to send an OPTIONS with the endpoint URL to the
> server, which returns the correct response: headers with POST.
>
> I then never see a POST.
>
> In the code itself, the RPC callback gets a failure,
> StatusCodeException. The status code is 0.
>
> I am stumped. Anyone's run into this?
>
> Thanks,
> Benjamin

-- 
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: Anyaware of Hadoop/HBase/BigTables

2010-03-26 Thread Karthik K
On Fri, Mar 26, 2010 at 1:35 AM, sridevi macherla  wrote:

> Hi Karthik,
>
> I would like to know how to implement or the usage of BigTable


>From an academic perspective, the paper would give a good idea and of
course, app engine being the closest in terms of access to the
infrastructure.


> /Hbase?  which one would be best fit to hold the data around 5 TB in
> compressed manner.
>
>
A good start would be to go through the C(onsistency)A(vailability)P theorem
, and make a call on what you need.



> currently ia m evulating the frameworks and would like to know what are the
> other frameworks and which one will be best suited if anyone used it.
>
> other candidates - cassandra / hypertable/ riak / scalaris / mongoDB etc.



> And also any docs are available on any of these?
>


Google is your friend !


>
> Thanks
> Sri
>
>
> On Fri, Mar 26, 2010 at 12:45 PM, naga vinod kumar <
> vinodkumark...@gmail.com> wrote:
>
>>
>> Are there any opensource projects with respect to AppEngine or hadoop..?
>>
>>
>>  --
>> 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.



Earth Hour 2010: Will you join me?

2010-03-26 Thread Ivan Vovnenko
Google-Web-Toolkit@googlegroups.com,

I just signed up to support the Earth Hour 2010 campaign and I'd like to invite 
you to join me. Just visit https://www.myearthhour.org/home?invite=znCkBHihSx.

Earth Hour was conceived by the World Wildlife Fund, and represents the global 
call to action on climate change. The more people that pledge to turn off their 
lights for Earth Hour, the more influence we will have. Nearly one billion 
people around the world turned off their lights for Earth Hour 2009 and we can 
help make the next one even bigger.

Through the flick of a light switch on March 27 at 8:30 pm local time, we'll be 
casting our vote for action on one of the most pressing issues facing our 
planet, sending a message to our local, national, and global leaders that the 
time to act is now.

Follow this link to learn more and sign-up yourself. 
https://www.myearthhour.org/home?invite=znCkBHihSx 




-Ivan Vovnenko



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



Manage a Webcam via GWT

2010-03-26 Thread Fran
Hi,

¿Is possible get manage of Webcam in GWT?
I want put a webcam in my GWT aplication but I dont know how i can

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.



migrating to 2.0...issues...

2010-03-26 Thread golfdude

I updated to the latest gwt plugin. Now when I run my app, in my
browser, I get  a "gwt module  needs to be recompiled, use
Compile/Browse button in Hosted mode". But now there is no hosted
mode, right ? I have tried cleaning the cache files, rebuilding
project ( no errors ), but I keep getting this error. The new settings
I notice in Eclipse --> Run Configuration is

1. Under Main, there is a "Main class" section pointing to DevMode
class.

2. Under program arguments, I see

-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -
port  -war C:\Users\test\workspace\frames\war
com.geazy.frames.Frames


I use the url...http://127.0.0.1:/Frames.html?
gwt.codesvr=127.0.0.1:9997 to connect to the app...


I am not sure where to start to debug this issue...i have searched
this forum but couldnt find much.


Thanks

gd

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