Re: Chrome 15, GWT DMP Plugin crashes

2011-11-30 Thread John Patterson
Was this issue ever fixed?  I'm getting it now after upgrading chrome to 
the dev channel and then reverting it back to the stable channel

-- 
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/-/_KUMVAXeM7EJ.
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: BeanValidation JSR 303

2011-11-30 Thread F. Lancer
Hello, Fabricio.

I try to use GWT validation (http://code.google.com/p/google-web-
toolkit/wiki/BeanValidation , started from GWT 2.4.0). This package is
in EXPERIMENTAL state but I suppose it will be released soon (<1year).
There are some troubles with usage (I still cannot use 2 validators
per application, not all constraints can be used to validate beans -
@AssertTrue on properties are ignored, for example), but it is JSR-303
validation.

Sample from GWT - 
http://code.google.com/p/google-web-toolkit/source/browse/#svn%2Ftrunk%2Fsamples%2Fvalidation

There is another implementation of JSR-303 for GWT -
http://code.google.com/p/gwt-validation/w/list I have no experience
with this implementation.

Regards,
Alex.

On 30 ноя, 20:38, Fabricio Pizzichillo  wrote:
> Hello People.
> What do you recommend for DTO validation?
>
> Regards
> Fabricio

-- 
You received 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 Hyperlink not working

2011-11-30 Thread Noor
I'm getting a problem with a gwt hyperlink, in fact it is not working,
Ok, when I'm placing my cursor on the hyperlink, I cannot press on the
hyperlink, it is as if a label!! :

GWT Codes:

Hyperlink hprlnkArt = new Hyperlink("Art", false, "Interest=14");
grid.setWidget(0, 6, hprlnkArt);
grid.getCellFormatter().setStyleName(0, 6, "interestBarGridSlot");
hprlnkArt.setStyleName("interestBarIcons");

Corresponding CSS Styles:

.interestBarIcons
{
   width:106px;
text-align:center;
}

.interestBarGridSlot
{
background:black;

}

.interestBarGridSlot a
{
color:white !important;
font-weight:bold;
font-size:17px;
}

.InterestTitle
{
font-size:20px;
font-Weight:bold;
}

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



Re: How to read properties at runtime

2011-11-30 Thread Alfredo Quiroga-Villamil
I think the closest you will get to what you need is to use a combination
of Dictionary (
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/i18n/client/Dictionary.html)
and Server side response to create that dictionary and load it to a
globally scoped JS object. This would I think give you the run time look up
you are looking for.

The idea would be to have some back-end service that reads say a property
file and then respond to the client which would consequently build that
Dictionary previously mentioned.

Disclaimer:

Wait before you start to implement it since I am not 100% sure. There might
be a better way to do it.

Regards,

Alfredo

On Wed, Nov 30, 2011 at 2:19 PM, Ramesh  wrote:

> Hi,
> I am using GWT com.google.gwt.i18n.client.Constants for reading
> properties file in GWT. And using GWT.create to create instances for
> these properties. Actually these values are read at GWT compile time.
> But i want them to read at run time so that i need only to restart the
> server when i change these properties. I googled for the solution but
> nothing gave me an exact solution. Can some one please help me in
> this.
>
> Thanks in Advance...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received 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 Developer Plugin for Firefox 8

2011-11-30 Thread rakesh wagh
I got the file. works well! good job... keep it up. 

-- 
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/-/85mdDCq0NQIJ.
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 for mobile.

2011-11-30 Thread Alfredo Quiroga-Villamil
During the past few months I've seen a few projects that look promising in
this area. All of which are using GWT. You can take a look at:


http://code.google.com/p/mgwt/
http://nextinterfaces.com/
http://www.emitrom.com/gwt4touch

With all of these I believe if I am not
mistaken that you will be able to use the existing back-end services and
even share models that are used in both Server and the UI.

There are probably others so look around to see which one better matches
what you need.

Best of luck.

Alfredo

On Wed, Nov 30, 2011 at 3:33 AM, svkirans  wrote:

> Hi,
>
>   We are planning to use GWT as UI framework on top of Spring for our
> large enterprise application which needs to run in an heterogeneous
> environment. We want the application to run on IE 7, IE 8, IE 9,
> Mozilla , Safari and chrome in different Operating Systems like
> Windows and Mac.
>
> GWT already proved to be good choice for cross browser desktop
> applications and so we are ready to start using it.
>
> But we are in dilemma about its capability to support browsers in
> mobile devices of Android and i-OS. I know there is mobile version of
> GWT, but that requires large amount of re-implementing the
> application.
>
> We want to reuse the same service for both the desktop and mobile
> clients. I know there will be some price to pay in terms of GUI and
> performance on mobile apps, but in short term until we get a a mobile
> version native apps ready we are prepared to use the application in
> browsers of the mobiles.
>
> Please suggest if GWT can achieve this or is there scope for bigger
> issues.
>
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received 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 Widget in Designer with Database Specific Attributes

2011-11-30 Thread mpp4manu
I am very new to all technologies surrounding GWT, so feel free to
point and laugh at the following question:

I want to build a listbox widget that has properties which will insert
items into (onModuleLoad) based upon rows returned from a MySQL
database query.  The additional properties would be as follows:

databaseName
columnName
sqlQuery

These would then be associated with a method that executes the SQL
query through a database pool on a Geronimo (Tomcat) server.  In other
words, they would be parameters passed to the server side method that
performs the call.  I already have the appropriate server-side code to
accept the parameters.

I have modified a tutorial I found at IBM on how to communicate with
the database itself and have a small web page that confirms that I can
insert data into the database and retrieve it.  I imported this
project into Eclipse and can see the widgets in the Designer
interface.

The MySQL database sits on a totally separate server and is made
accessible via a database pool on the Tomcat server.

What I want is to be able to create a listbox widget (and using this
as an example, other widgets), where I can drag them on to a panel in
GWT Designer, and set properties for an appropriate SQL query that
will populate the listbox (or other widget in an appropriate manner)
when it is loaded.

To me this seems like a very useful function as you only need to worry
about the database query used to initially populate the list.  This
could be extended to any other widget whose initial value(s) could be
derived from a database.  This is part of  a "grander" vision of a
Design tool that masks the inherent complexity of this technology,
while still allowing the user to create sophisticated, data driven
user interfaces.

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.



How to read properties at runtime

2011-11-30 Thread Ramesh
Hi,
I am using GWT com.google.gwt.i18n.client.Constants for reading
properties file in GWT. And using GWT.create to create instances for
these properties. Actually these values are read at GWT compile time.
But i want them to read at run time so that i need only to restart the
server when i change these properties. I googled for the solution but
nothing gave me an exact solution. Can some one please help me in
this.

Thanks in Advance...

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



Re: Installing GWT plugin for Eclipse

2011-11-30 Thread Samir Trajano Feitosa
Remove all dependences.
For your Win 7 64 bits, install JDK 6 '32' bits, eclipse JEE Indigo, gwt
eclipse indigo 3.7.
Clear  environment variables.


Em 28 de novembro de 2011 16:07, Postholes escreveu:

> I am having serious hair pulling type issues. When I search the web to
> try to resolve the issue myself I just run into a whole mess of people
> that seem to have very similar problems, Win 7 64bit OS, (any version
> of Eclipse), and Java SDK 6. Nobody has posted a solution that helps
> me. I have a project I have to do very soon and I can't get a simple
> tool to work at the moment, hopefully everybody can understand my
> frustration. I have tried everything that comes to mind, multiple new
> installs of Eclipse, all versions, posted on the Eclipse forums and
> still no help there either. I re-downloaded all of the new installs of
> Eclipse, went through the GWT tutorial line by line and can't get
> anywhere with the plugin. I have some screen shots but don't see a way
> to include them in this email without posting links. The basic gist of
> what's happening is:
>
> Unable to read repository at
> http://dl.google.com/eclipse/plugin/3.7/content.jar.
> Read timed out
>
> I get this with windows firewall disabled, allowing Eclipse through,
> from several different wifi locations, including my home network with
> DMZ status set up for system and still cannot connect. When I tried
> installing the WST for Eclipse and used the local install method for
> the GWT it tries to go to an outside server with or without the "Check
> for all updated software" button selected (didn't quote it exactly but
> I think you know what I mean). After several minutes of nothing it
> says unable to read repository.
>
> I will attempt any suggestion at this point, even if it's something
> I've done ad-nausea, because I am quite aware that I may be missing
> something simple. As before I have found that this is a fairly common
> issue, but never found a solution posted anywhere.
>
> Please Help,
>
> Postholes
>
> --
> You received 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.
>
>


-- 
[]'s
Samir Trajano Feitosa
"Quando a vida pregar uma peça em você, solte um sorriso bem engraçado.
Assim o drama vira comédia e as lágrimas se tornam aplausos."
[Samir Trajano Feitosa]
Ciência da Computação UFCG

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



displaying html with linked css and images?

2011-11-30 Thread fisher....@gmail.com
I am trying to display html with linked css and images.  I was
initially trying to use html widget, but realized that it is then a
challenge to display the referenced css and images.

The idea is that html will be imported into the system and then be
displayed and modified, so the main thing is referencing the html with
imported images.

Is there a preferred way to deal with accessing these kinds of
resources?

Thanks,
Lee

-- 
You received 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: Including Jars on server side only - causing client compile errors

2011-11-30 Thread Wadael
Thanks for your message, put me on the right path to solve this.

My app wasnt compiling anymore on 2.4 (ok w/ 2.3). I "up-ped" the GWT (dev 
& user) libs in the "Order and Export" tab of the build path.

The order I use is :
JRE
my project src
validation
gwt dev
gwt user


Thanks 

Jerome

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



How do I provide a key to public users ?

2011-11-30 Thread inuy4sha
I'm creating a webapp.. I can access it locally but not from remote machine.
Chrome is givin me this error:

Uncaught java.lang.RuntimeException: The Maps API has not been loaded.
Is a 

Re: MySql Connection Problem

2011-11-30 Thread mpp4manu
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.



GWT for mobile.

2011-11-30 Thread svkirans
Hi,

   We are planning to use GWT as UI framework on top of Spring for our
large enterprise application which needs to run in an heterogeneous
environment. We want the application to run on IE 7, IE 8, IE 9,
Mozilla , Safari and chrome in different Operating Systems like
Windows and Mac.

GWT already proved to be good choice for cross browser desktop
applications and so we are ready to start using it.

But we are in dilemma about its capability to support browsers in
mobile devices of Android and i-OS. I know there is mobile version of
GWT, but that requires large amount of re-implementing the
application.

We want to reuse the same service for both the desktop and mobile
clients. I know there will be some price to pay in terms of GUI and
performance on mobile apps, but in short term until we get a a mobile
version native apps ready we are prepared to use the application in
browsers of the mobiles.

Please suggest if GWT can achieve this or is there scope for bigger
issues.

Thanks in advance.

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



gwt

2011-11-30 Thread Amrutha
I started to create a login page .I created a sign in anchor when i
click on dat sign in link I need to go to sign in page .What can i do
for that?Should I create any new page for that??Please do reply

package com.gwt.sample.client;

import com.google.gwt.core.client.EntryPoint;


public class SampleApplication implements EntryPoint {
private Anchor anchor;

public void onModuleLoad() {
VerticalPanel mainPanel = new VerticalPanel();
anchor = new Anchor();
anchor.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {

}
});
anchor.setText("Sign in");
mainPanel.add(anchor);

}
}

-- 
You received 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: Setup Database Access in Development Mode

2011-11-30 Thread mpp4manu
I also fairly new to GWT.  I found the following tutorial to be
helpful, however, it is 4 years old so you will have to modify some
code to make it work.  I suggest downloading the project file and work
through the tutorial.  You will need to change some things such as the
location of your GWT SDK.  It is also specific to the use of Apache
Geronimo as an application server.

Part 1:
http://www.ibm.com/developerworks/opensource/tutorials/os-ag-gwt1/

Part 2:
http://www.ibm.com/developerworks/opensource/tutorials/os-ag-gwt2/

As far as testing connectivity to the database, you can test whether
or not your computer can connect to the database is to install the
Eclipse data tools plugins, if not already installed.  The "Data
Source Explorer" allows you to set up a connection to your database
that will allow you to not only confirm that you can connect to it
from your workstation, but also provides schema information, etc.

If you want a pure JavaScript implementation of your database lookup,
you will need to use the xmlhttp function.  Here's a good example of
its use:

http://www.w3schools.com/php/php_ajax_database.asp

This requires you to write some sort of code on the server side to
actually execute the SQL query and return the data.  I used a Perl
script, but you can use any language you like.  Making this work can
be a challenge at first and it has a lot more overhead than using an
application server and database pool (illustrated in the IBM tutorial
above).

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



Oops! This link appears to be broken.

2011-11-30 Thread sunny bansal
I just deployed an application from eclipse to google app engine but i
got below error:-

Oops! This link appears to be broken.
Suggestions:
•Go to appspot.­com
•Search on Google:


This error I am facing from last many days. I created 2-3 application
identifiers but everytime I got same error. Is there any issue with
application or something else?

Application is build in GWT.

Please help me to resolve the issue.

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

2011-11-30 Thread ph09
Ok, I have got the reason for the exception.
I have got (cascade={CascadeType.PERSIST}) forgotten.

But how could I transfer for example the company object to my GWT Client 
Side?


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



How can I trap for a 404 in my GWTTestCase?

2011-11-30 Thread laredotornado
Hi,

I'm using GWT 2.4.  I'm trying to write a GwtTestCase that tests
clicking the submit button on my FormPanel.  Currently, clicking on
the submit button results in a 404, but my test isn't failing.  Here's
how I have my test set up ...

public void testClickSave() {
final FlowPanel flowPanel = new FlowPanel();
final ProductDetailsView productDetailsView = new
ProductDetailsView();
flowPanel.add( productDetailsView );
RootPanel.get().add(flowPanel);

xmlHelperService.getNode("weather.txt", new 
AsyncCallback() {

@Override
public void onSuccess(final Node node) {
// Pre-conditions for this test are that they 
are children and all
the
// children are of type="section".
assertTrue(!node.getChildren().isEmpty());
for (final Node child : node.getChildren()) {

assertEquals(NodeType.SECTION.toString(),
child.getAttributes().get(XmlToHtmlServiceImpl.TYPE_ATTR).getValue());
}   // for

productDetailsView.add(node);
// Click the "Save" button.
final Button saveButton = 
getSaveButton(productDetailsView);
saveButton.click();

finishTest();
}

@Override
public void onFailure(Throwable caught) {
caught.printStackTrace(System.err);
fail(caught.getMessage());
finishTest();
}
});

delayTestFinish(delayFinishTime);
}   // testClickSave


The call to "saveButton.click();" is where the 404 is happening.  What
can I do to trap for the 404 and cause my test to fail?  Thanks, -
Dave

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

2011-11-30 Thread ph09
Thank you for your answer.

I use glassfish app server for my project, maybe there is something wrong?

To clarify my project structur:

Entities + SessionBean:

http://pastebin.com/4zRHMrcA

GWT Servlet:

http://pastebin.com/rSUSymNi

I have got a GWT Client Side where I temporally want to use POJOs from the 
EJB Project.
Then there is a GWT Servlet, which is there to communicate with my EJB 
Project.
At least I have got a EJB Project with my Session Beans for managing the 
Persistence Entities,
which should be able to be transferd to GWT Client Side. 
When I want to test if I could persist this little example, I got the 
following Exception:

http://pastebin.com/DEYjBrvY

Seems like I couldn`t use Transactionmanagement..
And how can I tell my GWT Project which Persistence Entities I have?




-- 
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/-/3SyK4WfTtK4J.
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.



BeanValidation JSR 303

2011-11-30 Thread Fabricio Pizzichillo
Hello People.
What do you recommend for DTO validation?

Regards
Fabricio

-- 
You received 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: RequestFactory with() fetching info only for last item in list

2011-11-30 Thread Sekhar
Thanks, yes...looks that way.

-- 
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/-/EppdutAdJl8J.
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: The requested URL was not allowed

2011-11-30 Thread Drew Spencer
Just been having this problem, I think.

I have an app at http://usavtestapp1.appspot.com/ and I only want my app 
available for my Google Apps users.

We already have our main website at our domain: 
http://utilitiessavings.co.uk - Can I host it on a subdomain or a subfolder 
of that domain? Am I getting this totally wrong? Does the app need its own 
domain, a different one to the Google Apps one?

Regards,

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/-/XsARbe0nzGYJ.
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: getOffsetHeight returns 0 although onload has been called

2011-11-30 Thread George Agiasoglou
Absolutely brilliant, the deferred command worked like a charm.

Many thanks to all of you!
-G

--
"Please consider the environment before printing this e-mail"
 
The Newspaper Marketing Agency: Opening Up Newspapers:
 
http://www.nmauk.co.uk/
 
This e-mail and any attachments are confidential, may
be legally privileged and are the property of NI Group 
Limited (which is the holding company for the News
International group, is registered in England under number
81701 and whose registered office is 3 Thomas More Square, 
London E98 1XY, VAT number GB 243 8054 69), 
on whose systems they were generated.

If you have received this e-mail in error, please notify 
the sender immediately and do not use, distribute, store 
or copy it in any way.

Statements or opinions in this e-mail or any attachment 
are those of the author and are not necessarily agreed 
or authorised by NI Group Limited or any member of its 
group.

NI Group Limited may monitor outgoing or incoming 
emails as permitted by law. It accepts no liability 
for viruses introduced by this e-mail or attachments.

-- 
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/-/x_-jcUPFoc0J.
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: getOffsetHeight returns 0 although onload has been called

2011-11-30 Thread George Agiasoglou
Unfortunately, I need the width and height of the area because I append 
that information on a url.

I will try the deferred command and let you know.


Many thanks,
G

--
"Please consider the environment before printing this e-mail"
 
The Newspaper Marketing Agency: Opening Up Newspapers:
 
http://www.nmauk.co.uk/
 
This e-mail and any attachments are confidential, may
be legally privileged and are the property of NI Group 
Limited (which is the holding company for the News
International group, is registered in England under number
81701 and whose registered office is 3 Thomas More Square, 
London E98 1XY, VAT number GB 243 8054 69), 
on whose systems they were generated.

If you have received this e-mail in error, please notify 
the sender immediately and do not use, distribute, store 
or copy it in any way.

Statements or opinions in this e-mail or any attachment 
are those of the author and are not necessarily agreed 
or authorised by NI Group Limited or any member of its 
group.

NI Group Limited may monitor outgoing or incoming 
emails as permitted by law. It accepts no liability 
for viruses introduced by this e-mail or attachments.

-- 
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/-/RDqZBFHY9mcJ.
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: RequestFactory with() fetching info only for last item in list

2011-11-30 Thread Thomas Broyer
Looks like http://code.google.com/p/google-web-toolkit/issues/detail?id=6710

-- 
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/-/OwGlzMZKRTEJ.
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 + EJB + MYSQL

2011-11-30 Thread Jens
If you use GWT-RPC every class that goes over the wire has to implement 
Serializable and must have a default constructor. Depending on your setup 
it can occur that the RemoteServiceServlet from GWT does not find the 
serialization policy file. So you should check your server logs to see if 
there are any serialization warnings.

Also if you are using an external server for GWT during development make 
sure that you first start dev mode and access your app. Then, when you got 
a SerializationException, redeploy your app to your external server and try 
it again. This ensures that your server always has the up-to-date version 
of the serialization policy file.

When I encounter SerializationExceptions I mostly forgot to add a default 
constructor to my classes. So check this first! ;-)

-- J.

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



RequestFactory with() fetching info only for last item in list

2011-11-30 Thread Sekhar
I have the following hierarchy

User (entity)
- List getMembers()
- List getProblems()

Member (value)
- User getUser()

Now, if I fetch a User using with(... "members", "members.user.problems"), 
I'm getting the problems only for the last member in the list. I verified 
in the debugger that getUser() gets hit for all the members, but 
getProblems() gets hit only for the last member. Is the call for with() bad?

-- 
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/-/tgQjBiWNYO4J.
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: getOffsetHeight returns 0 although onload has been called

2011-11-30 Thread Andrei
You don't need getOffsetHeight to achieve what you want. There are two
solutions:

1. Use LayoutPanel instead of DockLayoutPanel. LayoutPanel allows you
to add two widgets that occupy the same space. If you don't specify
the position of each child widget, each child widget will occupy the
entire space available. From this moment all you need to do is hide
one of them depending on where users clicks.

2. When necessary, detach one widget and attach the other one. In each
case these widgets should pick up their size automatically from their
parent widget - there is no need to set their size explicitly as long
as you use widgets that support resize.

-- 
You received 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: getOffsetHeight returns 0 although onload has been called

2011-11-30 Thread Jens
getOffsetHeight/Width only returns a value other than 0 if the element has 
been successfully rendered by the browser (possibly including elements that 
have visibility:hidden css).

When you call DeckLayoutPanel.setWidget(w) the DeckLayoutPanel schedules a 
layout command which will be executed after all of your code has been 
executed and just before the browser takes back control (see: 
Scheduler.get().scheduleFinally()). I think this has been done because you 
could call DeckLayoutPanel.setWidget() multiple times in your code, but 
when your code is done, the necessary DOM operations will be executed only 
once.

You can force the DOM operations by calling DeckLayoutPanel.forceLayout() 
just after you have called DeckLayoutPanel.setWidget() and then try to do 
your calculations. But I am not quite sure if its enough. If not, your best 
bet is to defer your calculations until everything has been rendered by the 
browser:

final Panel p = ...
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
  public void run() {
p.getOffsetHeight() ... //calculate your stuff
  }
});

Using a deferred command should definitely work.

-- J.

-- 
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/-/OdIl5VrlkJMJ.
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 + EJB + MYSQL

2011-11-30 Thread ph09
Hello,

I have got some Question concerning Serialization and persistence.
At First I have got a GWT project with Client code and a Servlet to 
communicate with
my EJB Project. 
In the EJB project there are some Persistent Entitie Classes with 
references among each other and beans to manage them.
The Reference may look like this:
 Object A
  /\
  Object B Object C
\
  Object D
Mostly there are 1:n Relationships, which i have to modelling with 
oneToMany or something like this..
I store them into a MYSQL Database which already work with Strings.
With Strings I haven't got Problems to transfer them from the GWT Client 
Side over the GWt Servlet to the EJB Bean and then into the Database and 
the same way back to the Client Side.
But when I try to transfer an own created Class object (POJO?) between GWT 
Client and EJB, I always get an Serialization Exception. 
Is it because of the GWT Servlet? I read something that you have to use DTo 
or Value Objects? Is this correct?
or isn't there a easy way to solve this?

-- 
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/-/cbDIKRBsKUgJ.
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: getOffsetHeight returns 0 although onload has been called

2011-11-30 Thread George Agiasoglou
The problem is that I call getOffsetHeight/Width on a panel which belongs 
to a widget which has display property set to none. The display property is 
set to none because that widget is not currently displayed by the 
decklayoutpanel but it is attached to it, which is the desired behaviour.  

I am using firebug and chrome dev tools extensively. To use those tools, 
that means that your view is layed out in the browser so everything is 
fine. 

The DeckLayoutPanel sets disiplay: none to all its children apart from the 
one currently being displayed. I tried, to postpone the call to 
getOffsetHeight after deckLayoutPanel.setWidget(widget) but still returned 
0.

Thanks, 
G << pulls his hair :( 

--
"Please consider the environment before printing this e-mail"
 
The Newspaper Marketing Agency: Opening Up Newspapers:
 
http://www.nmauk.co.uk/
 
This e-mail and any attachments are confidential, may
be legally privileged and are the property of NI Group 
Limited (which is the holding company for the News
International group, is registered in England under number
81701 and whose registered office is 3 Thomas More Square, 
London E98 1XY, VAT number GB 243 8054 69), 
on whose systems they were generated.

If you have received this e-mail in error, please notify 
the sender immediately and do not use, distribute, store 
or copy it in any way.

Statements or opinions in this e-mail or any attachment 
are those of the author and are not necessarily agreed 
or authorised by NI Group Limited or any member of its 
group.

NI Group Limited may monitor outgoing or incoming 
emails as permitted by law. It accepts no liability 
for viruses introduced by this e-mail or attachments.

-- 
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/-/yWhVRKHQDakJ.
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: getOffsetHeight returns 0 although onload has been called

2011-11-30 Thread Ed
Use firebug to analyze your problem.
If it's your display property then change this by
widget.getElement().getStyle().setDisplay(Display.BLOCK) (can be
little different).
By default the Display property is set to auto so if you aren't
setting it, it wouldn't give you any problem.


On Nov 30, 1:19 pm, George Agiasoglou
 wrote:
>  t @Vitrums
>
> I am convinced that my problem is caused because the property display is
> set to none, however I don't know how to solve it.
>
> I could add an AnimationCallback on the decklayoutPanel to find out when
> the widget is finally being displayed, but that kinda defeats the use of
> Activity.start()
>
> LazyLoading and how to implement this?
>
> Any suggestions?
>
> Many thanks for your help so far!
> -G
>
> --
> "Please consider the environment before printing this e-mail"
>
> The Newspaper Marketing Agency: Opening Up Newspapers:
>
> http://www.nmauk.co.uk/
>
> This e-mail and any attachments are confidential, may
> be legally privileged and are the property of NI Group
> Limited (which is the holding company for the News
> International group, is registered in England under number
> 81701 and whose registered office is 3 Thomas More Square,
> London E98 1XY, VAT number GB 243 8054 69),
> on whose systems they were generated.
>
> If you have received this e-mail in error, please notify
> the sender immediately and do not use, distribute, store
> or copy it in any way.
>
> Statements or opinions in this e-mail or any attachment
> are those of the author and are not necessarily agreed
> or authorised by NI Group Limited or any member of its
> group.
>
> NI Group Limited may monitor outgoing or incoming
> emails as permitted by law. It accepts no liability
> for viruses introduced by this e-mail or attachments.

-- 
You received 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: where can i get the results of RequestContext's fire method?

2011-11-30 Thread Ashwin Desikan
Yes, you can control. In your RequestFactory fire operation, override 
the OnConstraintViolation method in the receiver, like below.



  @Override
public void onConstraintViolation(
Set> 
violations) {
Iterator> itr = 
violations
.iterator();
while (itr.hasNext()) {
ConstraintViolation viola = 
itr.next();
log.log(Level.WARNING,
"Violation : [ " + 
viola.getMessage() + ": "
+ 
viola.getPropertyPath() + " : "
+ 
viola.getInvalidValue() + " ]");
}

// set the contraints in the editor

view.getEditor().setConstraintViolations(violations);
}


Now the violations are passed onto the editor. In the editor you can 
use wrap the controls which needs to display the violation messages 
using the ValueBoxEditorDecorator


example :

 addStyleNames="{style.common.separator10}  {style.common.txtClrRed}  
{style.common.separatorT}">

  
addStyleNames="{style.common.textHldr}"/>




Thanks
Ashwin


On Wednesday 30 November 2011 04:22:51 PM IST, Elhanan Maayan wrote:
ok let's assume i'm using the server side validation ,is there any 
easy to get the control which has the wrong value (i'm assuming the 
use of path is needed) from the editorError?


On Wed, Nov 30, 2011 at 12:38 PM, Thomas Broyer > wrote:


RequestFactoryEditorDriver#flush simply copies the data from the
widgets to the EntityProxy, so either you validate data in your
widgets (calling EditorDelegate#recordError; see the
ValueBoxEditor for an example) or you validate your proxy, but
you'd have to flush() first so the proxy is updated.
And if you need a reference to your EntityProxy, well, just keep
it one in a field of your class (this is how you'd do it anyway if
you didn't use the Editors framework; what this one does is for
the most part generating code for "put this object's data into the
widgets" and "put the widgets' value into the object"; see
https://gist.github.com/780560, compare the two commits for a
"without the Editor framework" and "with the Editor framework").

Now, about JSR303 on the client-side, then yes, you'll have to put
annotations on your proxies. You can see it as duplication, or as
a feature in that it allows you to validate differently on the
client-side and the server-side (because you don't have the same
capabilities).
I believe the idea was that proxies would be generated somehow,
rather than maintained by hand; and also that JSR303 support on
the client-side was done without thinking particularly about
RequestFactory.

-- 
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/-/9dgB5t-XJIwJ.

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.



--
You received 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: getOffsetHeight returns 0 although onload has been called

2011-11-30 Thread George Agiasoglou
 t @Vitrums

I am convinced that my problem is caused because the property display is 
set to none, however I don't know how to solve it. 

I could add an AnimationCallback on the decklayoutPanel to find out when 
the widget is finally being displayed, but that kinda defeats the use of 
Activity.start()

LazyLoading and how to implement this?

Any suggestions?

Many thanks for your help so far!
-G

--
"Please consider the environment before printing this e-mail"
 
The Newspaper Marketing Agency: Opening Up Newspapers:
 
http://www.nmauk.co.uk/
 
This e-mail and any attachments are confidential, may
be legally privileged and are the property of NI Group 
Limited (which is the holding company for the News
International group, is registered in England under number
81701 and whose registered office is 3 Thomas More Square, 
London E98 1XY, VAT number GB 243 8054 69), 
on whose systems they were generated.

If you have received this e-mail in error, please notify 
the sender immediately and do not use, distribute, store 
or copy it in any way.

Statements or opinions in this e-mail or any attachment 
are those of the author and are not necessarily agreed 
or authorised by NI Group Limited or any member of its 
group.

NI Group Limited may monitor outgoing or incoming 
emails as permitted by law. It accepts no liability 
for viruses introduced by this e-mail or attachments.

-- 
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/-/-JrQ5PYjQcAJ.
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: Question about serializing into file

2011-11-30 Thread Juan Pablo Gardella
I think you can use filters for that.

2011/11/29 Invitro.Guy 

> Hello,
>
> for backup reasons I want to serialize some runtime data that I
> already marked with IsSerializable into a file. Since I can send the
> data via RPC to a client, I am trying to use that same mechanism to
> write into a file.
>
> The idea is, that data must be serialized at server-side to transport
> through internet and at client-side, it must be transformed back.
> So - in my opinion - there must be a way, to serialize the data and
> write it into a file. When I need that backup, I simply would restore
> it, by using the client-part of that GWT-mechanism.
>
> Am I right with that theory? Can someone give me a hint where to
> start? Or just some links?
>
> THX ! ;)
>
>
>
>
> --
> You received 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: Serialize aspectj method in GWT

2011-11-30 Thread Juan Pablo Gardella
Because AspectJ modify .class and GWT need sources to compile.

2011/11/28 Paolo 

> I've try to expose to the client(gwt) an aspectJ method through gwt-
> rpc, but the gwt client can't find the method defined in an aspect.
> The class that i expose implements IsSerializable and only it's method
> are visible to the client interface...the method added by their aspect
> contrariwise no. How i can fix this? thanks in advice.
>
> p.s. i post a little example for more clarity:
>
> this is the class...
>
> public class Example implements IsSerializable{
>
>   private String name;
>
>   public setName(String name){
>  this.name=name
>   }
> }
> and this is the aspect...
>
> privileged aspect Example_x{
>
>   public int Example.getVersion() {
>  return this.version;
>   }
> }
> The Example.getVersion() method is unavailable on the client side.
>
> TNX
>
> --
> You received 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: Copy Paste Problem

2011-11-30 Thread Juan Pablo Gardella
See
http://stackoverflow.com/questions/1413378/how-to-make-javascript-shortcut-in-all-browser
and
http://stackoverflow.com/questions/1413378/how-to-make-javascript-shortcut-in-all-browser


2011/11/28 star 

> I'm trying to trap key downs in GWT, and I've tried both
> addKeyDownHandler and onBrowserEvent. The problem is that they work as
> long as the appropriate widget had the focus, but it stops working
> when something else has the focus. I could add the code to every
> single widget, but that seems crazy. I also tried forcing one single
> widget to always have the focus, but that causes other problems with
> things like TextBoxes (which need the focus for typing).
>
> Is there just a simple, high-level way to trigger some code when a key
> is pressed in GWT, regardless of which widget has the focus?
>
> --
> You received 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: where can i get the results of RequestContext's fire method?

2011-11-30 Thread Elhanan Maayan
ok let's assume i'm using the server side validation ,is there any easy to
get the control which has the wrong value (i'm assuming the use of path is
needed) from the editorError?

On Wed, Nov 30, 2011 at 12:38 PM, Thomas Broyer  wrote:

> RequestFactoryEditorDriver#flush simply copies the data from the widgets
> to the EntityProxy, so either you validate data in your widgets (calling
> EditorDelegate#recordError; see the ValueBoxEditor for an example) or you
> validate your proxy, but you'd have to flush() first so the proxy is
> updated.
> And if you need a reference to your EntityProxy, well, just keep it one in
> a field of your class (this is how you'd do it anyway if you didn't use the
> Editors framework; what this one does is for the most part generating code
> for "put this object's data into the widgets" and "put the widgets' value
> into the object"; see https://gist.github.com/780560, compare the two
> commits for a "without the Editor framework" and "with the Editor
> framework").
>
> Now, about JSR303 on the client-side, then yes, you'll have to put
> annotations on your proxies. You can see it as duplication, or as a feature
> in that it allows you to validate differently on the client-side and the
> server-side (because you don't have the same capabilities).
> I believe the idea was that proxies would be generated somehow, rather
> than maintained by hand; and also that JSR303 support on the client-side
> was done without thinking particularly about RequestFactory.
>
> --
> 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/-/9dgB5t-XJIwJ.
>
> 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: where can i get the results of RequestContext's fire method?

2011-11-30 Thread Thomas Broyer
RequestFactoryEditorDriver#flush simply copies the data from the widgets to 
the EntityProxy, so either you validate data in your widgets (calling 
EditorDelegate#recordError; see the ValueBoxEditor for an example) or you 
validate your proxy, but you'd have to flush() first so the proxy is 
updated.
And if you need a reference to your EntityProxy, well, just keep it one in 
a field of your class (this is how you'd do it anyway if you didn't use the 
Editors framework; what this one does is for the most part generating code 
for "put this object's data into the widgets" and "put the widgets' value 
into the object"; see https://gist.github.com/780560, compare the two 
commits for a "without the Editor framework" and "with the Editor 
framework").

Now, about JSR303 on the client-side, then yes, you'll have to put 
annotations on your proxies. You can see it as duplication, or as a feature 
in that it allows you to validate differently on the client-side and the 
server-side (because you don't have the same capabilities).
I believe the idea was that proxies would be generated somehow, rather than 
maintained by hand; and also that JSR303 support on the client-side was 
done without thinking particularly about RequestFactory.

-- 
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/-/9dgB5t-XJIwJ.
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: getOffsetHeight returns 0 although onload has been called

2011-11-30 Thread George Agiasoglou
Thank you for your suggestions, however, the display property is not set to 
none, actually is not set at all.

Thanks,
G

--
"Please consider the environment before printing this e-mail"
 
The Newspaper Marketing Agency: Opening Up Newspapers:
 
http://www.nmauk.co.uk/
 
This e-mail and any attachments are confidential, may
be legally privileged and are the property of NI Group 
Limited (which is the holding company for the News
International group, is registered in England under number
81701 and whose registered office is 3 Thomas More Square, 
London E98 1XY, VAT number GB 243 8054 69), 
on whose systems they were generated.

If you have received this e-mail in error, please notify 
the sender immediately and do not use, distribute, store 
or copy it in any way.

Statements or opinions in this e-mail or any attachment 
are those of the author and are not necessarily agreed 
or authorised by NI Group Limited or any member of its 
group.

NI Group Limited may monitor outgoing or incoming 
emails as permitted by law. It accepts no liability 
for viruses introduced by this e-mail or attachments.

-- 
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/-/7EoLdpEd_REJ.
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: where can i get the results of RequestContext's fire method?

2011-11-30 Thread Elhanan Maayan
you mean keep a reference to ctx2 and call persist on it after the flush ,
becouse persist requires the proxy, i think i finally got the bit about
queing, and i'm going for the edit-persist sequence, and flush-fire (which
won't make much sense readability wise), but then again, neither is most of
rf related code anyway.
now the real issue here is the validation handling, i understand the proper
way is to catch the onConstraintViolations here:
 DRIVER.setConstraintViolations(violations);
final List errors = DRIVER.getErrors();
for (final EditorError editorError : errors) {
  final Object userData = editorError.getUserData();
  final Object value = editorError.getValue();
  System.out.println(userData);
  System.out.println(value);
}

(because getting the errors has only after the call on flush made it.

but this still doesn't make much sense in regards to the client side
validation of gwt (the "experimental" one), if i got it right, i would have
to duplicate my validation annotations on to the getter of the entityProxy,
and manually call the validate command on it, before i even use the flush,
but then i'm back to the fact i don't have an updated entityProxy to
validate against ..


On Wed, Nov 30, 2011 at 11:39 AM, Thomas Broyer  wrote:

> You can either keep a reference to ctx2 and call persist() after the
> flush() of the editor driver; or you can cast the RequestContext returned
> by flush() and call persist on it (the returned RequestContext is the one
> you passed as an argument to edit(), so it's == ctx2).
>
> Or you can enqueue the persist() method on the ctx2 *before* calling
> edit(), so that you just have to fire() after the flush().
>
> It goes like this:
>
>- ctx2.edit(myProxy) → now ctx2 tracks changes to myProxy (actually,
>it only created a mutable version of it –and only one RequestContext can
>have a mutable version of a proxy at a given time–, the changes are not
>"tracked", the RequestContext only does a diff between the mutable proxy
>and the immutable proxy at the time of the fire()). You can call edit()
>several times for the same proxy on the same RequestContext, it will always
>return the same mutable proxy (you can also call edit() with the mutable
>proxy, it'll be returned without error).
>RequestFactoryEditorDriver#edit automatically calls
>RequestContext#edit so you don't have to do it yourself if you don't need
>it.
>- ctx2.persist(myProxy).with(paths).to(someReceiver) → enqueues into
>ctx2 an invocation to the "persist" method with argument "myProxy" (can be
>a mutable proxy or immutable proxy, edit() will automatically be called at
>the time of the fire()) and paths "paths", when the context will be fired
>and the server responds, the Receiver will be called with the invocation
>result (the return value on the server, converted to a client type).
>- ctx2.fire() → gets the changes of the edit()ed proxies and
>serializes them (this is known as "operations"), gets the enqueued
>invocations and serializes them, sends the batch to the server. On the
>server, operations are processed (calls find() on your domain object –or
>the locator– and then calls the setters from the operations), then
>invocations (each invocation can fail independently of the others; after
>each successful invocation, the "paths" sent from the client for the
>invocation are resolved on the return value), and then return values and
>server failures are serialized to be sent back to the client (in addition,
>for each domain object seen as input or output, their "liveness" is checked
>and can result in a "PERSIST operation" or "DELETE operation" serialized
>for the entity, then the versions are compared to the one sent by the
>client and if they don't match an "UPDATE operation" is serialized for the
>entity). On the client-side, proxies are deserialized, operations are
>turned into EntityChangeEvents, and then for each invocation, depending on
>their success on the server, the onSuccess or onFailure of the attached
>Receiver is called.
>
> There are of course additional steps for onConstraintViolations and
> "global failure", but you get the general idea: when you persist() a proxy,
> it doesn't take a snapshot of its state, it only enqueues an invocation;
> the state will be taken at the time you call fire(), not before.
>
> --
> 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/-/bWYhohNWCz0J.
>
> 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.
>

-- 
Yo

Re: Debugging application on external server

2011-11-30 Thread Thomas Broyer
The "code server" should be the machine where you run the DevMode, so if 
you run your browser on the same machine as the DevMode, it should just be 
"localhost" (only if you run DevMode on a machine and the browser on 
another one, or in a virtual machine, then you'll use the name of the 
machine running DevMode, so that the browser will be able to connect to it).
The startupUrl should be the one of the Glassfish server.
The "remote UI" is Eclipse itself: DevMode runs a distinct java application 
and either uses a Swing UI or connects to a "remote UI" (to tell you which 
URL to open, to output logs, etc.) When using the GPE, the "remote UI" is 
the "Development Mode" view in your Eclipse (where you can then stop the 
DevMode, refresh the server code, and see the logs).

So, in your Eclipse launch configuration, you should have:
  -startupUrl http://externalServer:8085/MyApp/MyApp.html → corresponds to 
the URL field in the GWT tab
  -noserver → because you unchecked "Run built-in server" in the Server tab
  -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" → the GPE adds it 
by default, do not change it (or remove it to use the Swing UI rather than 
using the integration within Eclipse)

The GPE also adds -codeServerPort 9997 but that's not really important.

See 
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT's

-- 
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/-/Sfg_wkWE8KkJ.
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 create object dynamically?

2011-11-30 Thread Ed
Your question is hard to understand, but I think:
I would create a panel throw in the preferences and let the panel find
out how to configure itself.

-- 
You received 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: Loading inherited module 'com.google.gwt.i18n.I18N' and Unexpected error while processing XML

2011-11-30 Thread Thomas Broyer
The JARs you download from code.google.com will be different from the one 
download from Maven Central; this is expected.
If you want to compare, download from 
http://search.maven.org/#artifactdetails%7Ccom.google.gwt%7Cgwt-user%7C2.4.0%7Cjar

-- 
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/-/wf2wsn8Y35MJ.
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 Add Google Toolkit

2011-11-30 Thread Ed
GWT can be added anywhere on your website.
Just give a div on your site a unique id and place widgets in it
through gwt.
See examples.

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

2011-11-30 Thread Ed
Strange question. :(
Please go through the examples and read your question again.
After the examples, please read your above question again...

-- 
You received 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: getOffsetHeight returns 0 although onload has been called

2011-11-30 Thread Ed
Make sure your widget is attached (check the attached property) before
requesting the widget for any dimensions.

Example: in my animation components I always first check that the
widget is attached as otherwise the animations are based on (most of
the time) incorrect dimensions as the browser didn't had time to
render them correctly.
This check overcomes a lot of problems.

-- 
You received 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: where can i get the results of RequestContext's fire method?

2011-11-30 Thread Thomas Broyer
You can either keep a reference to ctx2 and call persist() after the 
flush() of the editor driver; or you can cast the RequestContext returned 
by flush() and call persist on it (the returned RequestContext is the one 
you passed as an argument to edit(), so it's == ctx2).

Or you can enqueue the persist() method on the ctx2 *before* calling 
edit(), so that you just have to fire() after the flush().

It goes like this:

   - ctx2.edit(myProxy) → now ctx2 tracks changes to myProxy (actually, it 
   only created a mutable version of it –and only one RequestContext can have 
   a mutable version of a proxy at a given time–, the changes are not 
   "tracked", the RequestContext only does a diff between the mutable proxy 
   and the immutable proxy at the time of the fire()). You can call edit() 
   several times for the same proxy on the same RequestContext, it will always 
   return the same mutable proxy (you can also call edit() with the mutable 
   proxy, it'll be returned without error).
   RequestFactoryEditorDriver#edit automatically calls RequestContext#edit 
   so you don't have to do it yourself if you don't need it.
   - ctx2.persist(myProxy).with(paths).to(someReceiver) → enqueues into 
   ctx2 an invocation to the "persist" method with argument "myProxy" (can be 
   a mutable proxy or immutable proxy, edit() will automatically be called at 
   the time of the fire()) and paths "paths", when the context will be fired 
   and the server responds, the Receiver will be called with the invocation 
   result (the return value on the server, converted to a client type).
   - ctx2.fire() → gets the changes of the edit()ed proxies and serializes 
   them (this is known as "operations"), gets the enqueued invocations and 
   serializes them, sends the batch to the server. On the server, operations 
   are processed (calls find() on your domain object –or the locator– and then 
   calls the setters from the operations), then invocations (each invocation 
   can fail independently of the others; after each successful invocation, the 
   "paths" sent from the client for the invocation are resolved on the return 
   value), and then return values and server failures are serialized to be 
   sent back to the client (in addition, for each domain object seen as input 
   or output, their "liveness" is checked and can result in a "PERSIST 
   operation" or "DELETE operation" serialized for the entity, then the 
   versions are compared to the one sent by the client and if they don't match 
   an "UPDATE operation" is serialized for the entity). On the client-side, 
   proxies are deserialized, operations are turned into EntityChangeEvents, 
   and then for each invocation, depending on their success on the server, the 
   onSuccess or onFailure of the attached Receiver is called.

There are of course additional steps for onConstraintViolations and "global 
failure", but you get the general idea: when you persist() a proxy, it 
doesn't take a snapshot of its state, it only enqueues an invocation; the 
state will be taken at the time you call fire(), not before.

-- 
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/-/bWYhohNWCz0J.
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: getOffsetHeight returns 0 although onload has been called

2011-11-30 Thread Vitrums
getOffsetHeight() of an element which *display* property was set to *none*will 
always return 0

-- 
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/-/0X-b56QdlBQJ.
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: Debugging application on external server

2011-11-30 Thread Alexandre Ardhuin
Hi,

To debug a remote server you have to :
 - start DevMode on your localhost,
 - connect to your remote server with the normal url
 - add "gwt.codesvr=localhost:9997" parameter to the url where 9997 is the
port on witch DevMode is listening

As exemple if you have your app running on
http://remoteServer/MyApp/Mapp.html and DevMode listening on 9997, you have
to use http://remoteServer/MyApp/Mapp.html?gwt.codesvr=localhost:9997

Alexandre

2011/11/28 mariuszym 

> Hi!
>
> I'm new in GWT and I have annoying problem with GWT. I started develop
> existing project (GWT module + EJB module) and I can't begin to debug
> this.
> Application is working on server Glassfish 2.1 (external server - not
> on my localhost). I have ant script which deploying app on this
> server, but I still have to compile and deploy. Application uses some
> resources from server (jdbc connections, ldap realm), so I can't test
> it on my localhost (Jetty or Glassfish).
>
> I tried to change debug configuration in my Eclipse - now when I run
> application in my console I have:
> Could not connect to remote UI listening at localhost:8085. Using
> default UI instead.
>
> In development mode console I have:
> 00:00:25,623  [INFO] Paste
> http://externalServer:8085/MyApp/MyApp.html&gwt.codesvr=externalServer:-1
> into a browser.
> After paste I have error:
> Plugin failed to connect to Development Mode server at
> 10.11.131.124:-1
>
> I know that's wrong, but I have no more ideas how to configure. Is
> there a way to run debug this application - I can't find any similiar
> case on the forum.
>
>
>
> --
> You received 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: How to handle Browser History using UiBinder ?

2011-11-30 Thread Alexandre Ardhuin
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.