GWT Eclipse Emultaor Chokes on CSS3

2011-11-14 Thread Chris Marshall
I have been using some CSS3 styles like:
background-image: -webkit-linear-gradient(top, #CADEFA, #90A6C6); /*
Safari 5.1+, Mobile Safari, Chrome 10+ */
background-image: -moz-linear-gradient(top, #CADEFA, #90A6C6);   /*
Firefox 3.6+ */
for a while with no problem.
Without any obvious changes the GWT emulator in Eclipse now cannot parse
this CSS but continues to handle older CSS classes OK.
I am using a temporary fix with @CssResource.NotStrict to skip these parse
errors - not ideal!
Can anyone point to where I can look to fix the problem?
Regards Chris Marshall

-- 
You received 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: EntityProxy & equals

2011-11-14 Thread Thomas Broyer
EntityProxy#equals() actually compares their request-context and 
 stableId().
See 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/requestfactory/shared/impl/EntityProxyCategory.java#30

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



Re: Deferred binding with ClientBundle?

2011-11-14 Thread Ed
Thanks Thomas.

On Nov 14, 12:31 am, Thomas Broyer  wrote:
> Yes, GWT doesn't "chain" rules (which can be great, when what you want is
> to override).
>
> To overcome this, you have to code a "provider" or "factory" for the
> LoginResources and use your replace-with rule on that factory (see sample
> code below).
>
> Either that, or heavily use dependency injection, so that all you have to
> do is to declare that whenever an instance of LoginResources is needed,
> then an instance of RichLoginResources should be given instead. WIth GIN,
> it's as easy as: bind(LoginResources.class).to(RichLoginResources.class);
>
> class LoginResourcesFactory {
>    public LoginResources newInstance() {
>       return GWT.create(LoginResources.class);
>    }
>
> }
>
> class RichLoginResourcesFactory extends LoginResourcesFactory {
>    public LoginResources newInstance() {
>       return GWT.create(RichLoginResources.class);
>    }
>
> }
>
> 
>    
> 

-- 
You received 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-14 Thread Alan Leung
I started a code review already.

On Sat, Nov 12, 2011 at 6:51 PM, James Wendel  wrote:

> Agreed.  It would be nice to see this uploaded to SVN.
>
> On Nov 10, 4:44 pm, bryn ryans  wrote:
> > Any particular reason why the FF8 plugin has been
> uploadedwww.fileswap.com
> >
> > rather than google-web-toolkit SVN (http://google-web-
> > toolkit.googlecode.com/svn/trunk/plugins/xpcom/prebuilt/)?
> >
> > Thanks.
> >
> > On Nov 10, 2:27 pm, Alan Leung  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Right. I keep a very close watch on the FF release schedule. The
> latest and
> > > greatest is usually in SVN quickly if you are feeling adventurous.
> >
> > > I am slightly hesitant to push it out to the official page because I
> don't
> > > want to break EVERY GWT user with a bad build. If you are downloading
> from
> > > the SVN, I assume you have no problem uninstalling a bad version if it
> > > didn't work for you.
> >
> > > -Alan
> >
> > > On Thu, Nov 10, 2011 at 11:52 AM, Thomas Broyer 
> wrote:
> > > > It's been officially updated to FF7 yesterday (the XPI was
> downlodable for
> > > > a long time already on the SVN):
> > > >http://code.google.com/p/google-web-toolkit/source/detail?r=10735
> >
> > > > --
> > > > 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/-/9C6PB5Pk_eIJ.
> >
> > > > 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.



GWT Temp files

2011-11-14 Thread Sanjay Jain
Hello All,
This question may be a very easy for many of you, But I am not getting any 
answer for it.
I am using GWT for my application.While I compile and run my application, a 
lots of files and folder created automatically in temp folder.I am not 
getting for which means these files are in temp folder.Ans what the reason 
to create it by GWT.
Please help me out.

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



Text looks blurry on zoom (iPad)

2011-11-14 Thread Brian
Hi
I got a question about text in gwt, if I have a normal webpage and I
zoom in the text looks sharp and clean.
In my gwt application when I zoom, it's like the text is not redrawn,
and it really looks blurry and almost hard to read.
So is gwt doing some optimizations on the text when on mobile devices,
and if so, can I set a flag to turn it off?

Cheers Brian

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

2011-11-14 Thread Patrick Tucker
Are you referring to the AppData\Local\Temp folder?

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

On Nov 14, 8:03 am, Sanjay Jain   wrote:
> Hello All,
> This question may be a very easy for many of you, But I am not getting any
> answer for it.
> I am using GWT for my application.While I compile and run my application, a
> lots of files and folder created automatically in temp folder.I am not
> getting for which means these files are in temp folder.Ans what the reason
> to create it by GWT.
> Please help me out.

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



Session Time Out and Authentication problem with gaerequest module

2011-11-14 Thread Cem Ikta
Hello,

I try to use *gaerequest* module (mobilwebapp demo in gwt svn) to control 
session timeout and authentication. Everything works fine but I'll never get 
in *GaeAuthenticationFailureEvent* dispatch method. What I do is the same in 
Expenses or MobilwebApp gaerequest gwt module in samples.

Because I use Gwt 2.4, there is a bug with evenbus (
http://code.google.com/p/google-web-toolkit/issues/detail?id=6653) with 
EventBus.

I use com.google.web.bindery.event.shared.EventBus and I have 
writtenBaseActivity to 
correct EventBus error (see bug link). Everything works fine with Activities 
but never comes into dispatch method in GaeAuthenticationFailureEvent? 

Why does not dispatch event? ( In GaeAuthRequestTransport makes 
eventBus.fireEvent(new GaeAuthenticationFailureEvent(loginUrl)); ) 
Does anyone have problems with gearequest dispatch event in GWT 2.4?

Thanks.

-- 
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/-/HFkH_m6bVVUJ.
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: PopupPanel showRelativeTo Firefox issue

2011-11-14 Thread Dimitrijević Ivan
I have the same problem in firefox 7 and GWT 2.3.
Is there submitted ticket for this issue, solution or something?

Thanks!

-- 
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/-/LDGKRZ8OCMYJ.
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: EntityProxy & equals

2011-11-14 Thread Robert Quinn
Equality works as Thomas mentioned, so one basic question leaps to
mind: Why are you comparing EntityProxys from different contexts or
with different stableIds?  Maybe there is a more centralized way you
could manage those EntityProxys so that you are not dispersing them in
various states/contexts across your app.


On Nov 14, 12:09 am, Hilco Wijbenga  wrote:
> Hi all,
>
> I was trying to check the presence of an EntityProxy in a
> Set [i.e. set.contains(proxy)]. This returned false even
> though the proxy was an element of the set. As it turns out
> EntityProxy.equals() doesn't work, or, more precisly, it seems to
> behave as the default equals() and check reference equality instead of
> value equality.
>
> So how do I get a working value checking equals? Without it,
> Set is just about useless. I didn't see anything relevant
> in [1] and Google was no help either. (I did find a similar question
> but it went unanswered.)
>
> Cheers,
> Hilco
>
> [1]http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

-- 
You received 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: Dart and GWT

2011-11-14 Thread Eric Clayberg (Google)
The Dart Editor team is primarily focused on the standalone RCP-based 
editor as it gives a much better experience (e.g., smaller and much faster) 
than would an Eclipse plugin running in Eclipse. At the moment, we don't 
have plans to provide a plugin for Eclipse, but most of the pieces are 
there if someone else wanted to do it (that would be a great open source 
contribution from someone in the community). The plugins used by the Dart 
Editor could likely be reused and and new plugin would need to be created 
to support the Eclipse-integrated solution.

-- 
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/-/zDs9EuwZyecJ.
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 compiler doesn't create symbol maps files

2011-11-14 Thread Thomas Käfer
thanks for posting this, I was just having the same problem!

On 23 Okt., 16:03, Alexander  wrote:
> A miracle happened, I found the reason.
> 
> I don't even know how much time I have spent.
>
> On Oct 23, 6:13 pm, Alexander  wrote:
>
>
>
>
>
>
>
> > Hello.
>
> > GWT compiler doesn't create directory symbolMaps deploy.
> > Already for a long time I'm trying to solve this problem. Every time I
> > spend on it about a day without results.
>
> > Folder rpcPolicyManifest created in WEB-INF/deploy folder, but
> > symbolMaps not.
> > I tried to compile and through gwt-maven-plugin and directly through
> > com.google.gwt.dev.Compiler, with custom -deploy.
>
> > Many people asks how to disable generation of this files but seems
> > that nobody has same problem.
> > Except one 
> > guy:http://stackoverflow.com/questions/7504644/gwt-compiler-doesnt-create...
> > But he has no answer too.
>
> > GWT version 2.4.0. On 2.3.0 I have same result.

-- 
You received 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: Form factor support using GIN

2011-11-14 Thread Jens
Hi,

I have pretty much the same code in my project for a long time but I had 
disabled everything but the desktop replace-with default rule. Today I have 
included the rules for tablets and mobiles again and deferred binding 
doesn't work correctly. GWT always uses the DesktopGinjectorProvider. Even 
if I disable all rules again and directly tell GWT to replace 
DesktopGinjectorProvider with TabletGinjectorProvider GWT uses the 
DesktopGinjectorProvider:


   



So I turned on GWT debug messages and the rebinding log says:

- Rebinding .DesktopGinjectorProvider
- - Checking rule 
- - - Checking if all subconditions are true ()
- - - - 
- - - - - Not an exact match
- - - - No: One or more subconditions was false



So GWT sees my rule that should replace the DesktopGinjectorProvider with 
the TabletGinjectorProvider but doesnt find an "exact match" and thus uses 
the DesktopGinjectorProvider as its a concrete class.

So how can a fully qualified class name "not exactly match"? Any ideas? 


-- 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/-/8HVLgE4phMsJ.
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: EntityProxy & equals

2011-11-14 Thread Hilco Wijbenga
On 14 November 2011 06:33, Robert Quinn  wrote:
> Equality works as Thomas mentioned, so one basic question leaps to
> mind: Why are you comparing EntityProxys from different contexts or
> with different stableIds?  Maybe there is a more centralized way you
> could manage those EntityProxys so that you are not dispersing them in
> various states/contexts across your app.

Firstly, I should have been more concerned about hashCode when working
with Sets but hashCode and equals go hand in hand and hashCode is part
of EntityProxyCategory as well.

The EntityProxy-s might be from different contexts but they are not
editable and all fields (including stableId) are the same. I checked
this. They all come from the database, through RF, so I have no
control over how many instances are created, AFAICT.

But I'm really confused now. I can see that equals/hashCode do what I
need them to do (i.e. compare stableId) but it's not working. Very
strange.

-- 
You received 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: Form factor support using GIN

2011-11-14 Thread Jens
Sighthe root of all evil are one letter typos...

It works now.

-- 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/-/rvE-gKUQXgQJ.
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: Sessions and Activities and Places

2011-11-14 Thread Mike Dee
I'm sorry, I don't think I understand this.  How would a separate GWT
module help?  Wouldn't a separate module (with separate URL) produce a
separate session?

On Nov 13, 9:54 pm, -sowdri-  wrote:
> Have your tried moving login part to a separate GWT module, with a
> different url (consequently a separate host html) and let the container
> handle the session management?

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



KeyboardSelectionPolicy BOUND_TO_SELECTION vs ENABLED

2011-11-14 Thread Raziel
Hi, could somebody provide a simple but complete explanation, and
perhaps a use case, for the usage of
KeyboardSelectionPolicy.BOUND_TO_SELECTION and
KeyboardSelectionPolicy.ENABLED?

I've looked at the code, and see a number of tickets being resolved
around this concept, but I'm still not clear of the intention and thus
usage of this concept (specially when the enumeration names seem
orthogonal: ENABLED/DISABLED vs BOUND_TO_SELECTION).

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-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: Display first web page in GWT

2011-11-14 Thread gerry
Hi,

You have to put your images and other static files inside the war
directory. And mind the fullstop (.) before the css rule:
.appbackground {
background-image: url   (images/background.jpg); // provided that you
have an the forlder images under war folder
width: 80%; height: 80%;
border: 10px solid red; // You have to separate those with a space, I
don't think comma is working
}

On 13 Νοέ, 17:51, Jonathan Gossage  wrote:
> I am a complete beginner with GWT and web development generally and I
> trying to build a GWT app using baby steps so I can understand each
> step. I have created a tiny app that simply as a styled layout panel
> in the RootPanel. My code in onModuleLoad is:
>
>         public void onModuleLoad() {
>                 LayoutPanel p = new LayoutPanel();
>                 p.setStylePrimaryName("appbackground");
>                 RootLayoutPanel.get().add(p);
>                 p.setVisible(true);
>         }
>
> and I have the following entry in the application style sheet:
>
> appbackground {
> background-image: url   (WEB-INF/images/background.jpg);
> width: 80%; height: 80%; border: 10px,solid,red;
>
> }
>
> My problem is that I do not see any evidence of the styling in the
> displayed web page. I have verified that the onModuleLoad() method is
> being called. Can anyone spot what I  could be doing wrong:
>
> Jonathan Gossage

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



Detect mouse position when click on DatePicker?

2011-11-14 Thread King_V
All,

Ok, I'm sure the question can be applied more generically  -  however,
I figured I'd ask it for my particular problem.

I have a DatePicker, and a class that implements
ValueChangeHandler

What I want to do is figure out the mouse's absolute x and y position
on the browser window when this happens.

Is this possible?  If so, how?

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.



mgwt: Building iPhone / Android app with GWT

2011-11-14 Thread Daniel Kurka
For those interested mgwt 1.0 was just released.

Link to the project homepage:
http://www.m-gwt.com

Link to the blogpost:
http://blog.daniel-kurka.de/2011/11/mgwt-10-released.html

- Daniel Kurka

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

2011-11-14 Thread learning coding
Hi i am very new to programming, So Plz Help with the code.
I have a code which is running fine when i am creating with java
project in eclipse.But the same code is not running with gwt web
application.

void init()
{
SessionFactory sessionFactory =SessionFactoryImpl.newInstance();

Map parameter =new HashMap();

// //connection setting :should DOne by Server

parameter.put(SessionParameter.USER,"xyz");
parameter.put(SessionParameter.PASSWORD, "abc");

parameter.put(SessionParameter.ATOMPUB_URL, "http://19.16.1.15:9080/
CaseManager/resources/ECM/ContentFlat");

parameter.put(SessionParameter.BINDING_TYPE,BindingType.ATOMPUB.value());

//find all the repositories at this URL
List repositories =new ArrayList();
repositories = sessionFactory.getRepositories(parameter);

for(Repository r : repositories)
{
System.out.println("Found Repositroy" + getName())// should be
displayed by client
 }
}

Connection should be done by the server.
and client should  show the result of the request of finding the
repositories .

but I dont know what code should be written in services and client
folder in GWT.
Please Help.
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: Display first web page in GWT

2011-11-14 Thread Jonathan Gossage
Thanks for your suggestions. I have tried all your suggestions but still
nothing is displayed. I tried stepping through the code after
onModuleLoad() but could not find anything suggestive of a problem.

2011/11/14 gerry 

> Hi,
>
> You have to put your images and other static files inside the war
> directory. And mind the fullstop (.) before the css rule:
> .appbackground {
> background-image: url   (images/background.jpg); // provided that you
> have an the forlder images under war folder
> width: 80%; height: 80%;
> border: 10px solid red; // You have to separate those with a space, I
> don't think comma is working
> }
>
> On 13 Νοέ, 17:51, Jonathan Gossage  wrote:
> > I am a complete beginner with GWT and web development generally and I
> > trying to build a GWT app using baby steps so I can understand each
> > step. I have created a tiny app that simply as a styled layout panel
> > in the RootPanel. My code in onModuleLoad is:
> >
> > public void onModuleLoad() {
> > LayoutPanel p = new LayoutPanel();
> > p.setStylePrimaryName("appbackground");
> > RootLayoutPanel.get().add(p);
> > p.setVisible(true);
> > }
> >
> > and I have the following entry in the application style sheet:
> >
> > appbackground {
> > background-image: url   (WEB-INF/images/background.jpg);
> > width: 80%; height: 80%; border: 10px,solid,red;
> >
> > }
> >
> > My problem is that I do not see any evidence of the styling in the
> > displayed web page. I have verified that the onModuleLoad() method is
> > being called. Can anyone spot what I  could be doing wrong:
> >
> > Jonathan Gossage
>
> --
> You received 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: EntityProxy & equals

2011-11-14 Thread Hilco Wijbenga
On 14 November 2011 08:47, Hilco Wijbenga  wrote:
> On 14 November 2011 06:33, Robert Quinn  wrote:
>> Equality works as Thomas mentioned, so one basic question leaps to
>> mind: Why are you comparing EntityProxys from different contexts or
>> with different stableIds?  Maybe there is a more centralized way you
>> could manage those EntityProxys so that you are not dispersing them in
>> various states/contexts across your app.
>
> Firstly, I should have been more concerned about hashCode when working
> with Sets but hashCode and equals go hand in hand and hashCode is part
> of EntityProxyCategory as well.
>
> The EntityProxy-s might be from different contexts but they are not
> editable and all fields (including stableId) are the same. I checked
> this. They all come from the database, through RF, so I have no
> control over how many instances are created, AFAICT.
>
> But I'm really confused now. I can see that equals/hashCode do what I
> need them to do (i.e. compare stableId) but it's not working. Very
> strange.

Okay, so Robert was spot on. The problem is with RequestContexts. The
set has a RequestContext (although I'm not sure why, AFAICT its
onSuccess method has already run) and the proxy does not (i.e.
BaseProxyCategory.requestContext(proxy) returns NULL).

I'm sure there is a good reason for the RequestContext check in
EntityProxyCategory.equals() but it seems more like a bug than a
feature to me. Because of this extra check sets and maps no longer
work as one would expect them to.

How do I remove an EntityProxy from its RequestContext? There doesn't
seem to be a close() method or similar on RequestContext. When is the
RequestContext set to NULL? How do I get sets/maps to work 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.



GWT Designer 2.4 for Eclipse 3.4 based IDE

2011-11-14 Thread Sebastjan
I'm using IBM RAD 7.5 which is Eclipse 3.4 based and I would like to
update GWT Designer to the last release. I couldn't find repository
intended for Eclipse 3.4 only for 3.5+. Is there any way to perform
upgrade or I have to stuck with GWT Designer 2.2 until IBM upgrade
make stable RAD 8.0?

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

2011-11-14 Thread Robert Quinn
I also have collections of EntityProxys, but I make the lifetime of
the collection the same as the lifetime of the RequestContext.

So after I do a CRUD operation, I refresh my collections in the new
RequestContext, and therefore don't have any inter-RequestContext
problems.


On Nov 14, 2:01 pm, Hilco Wijbenga  wrote:
> On 14 November 2011 08:47, Hilco Wijbenga  wrote:
>
>
>
>
>
>
>
>
>
> > On 14 November 2011 06:33, Robert Quinn  wrote:
> >> Equality works as Thomas mentioned, so one basic question leaps to
> >> mind: Why are you comparing EntityProxys from different contexts or
> >> with different stableIds?  Maybe there is a more centralized way you
> >> could manage those EntityProxys so that you are not dispersing them in
> >> various states/contexts across your app.
>
> > Firstly, I should have been more concerned about hashCode when working
> > with Sets but hashCode and equals go hand in hand and hashCode is part
> > of EntityProxyCategory as well.
>
> > The EntityProxy-s might be from different contexts but they are not
> > editable and all fields (including stableId) are the same. I checked
> > this. They all come from the database, through RF, so I have no
> > control over how many instances are created, AFAICT.
>
> > But I'm really confused now. I can see that equals/hashCode do what I
> > need them to do (i.e. compare stableId) but it's not working. Very
> > strange.
>
> Okay, so Robert was spot on. The problem is with RequestContexts. The
> set has a RequestContext (although I'm not sure why, AFAICT its
> onSuccess method has already run) and the proxy does not (i.e.
> BaseProxyCategory.requestContext(proxy) returns NULL).
>
> I'm sure there is a good reason for the RequestContext check in
> EntityProxyCategory.equals() but it seems more like a bug than a
> feature to me. Because of this extra check sets and maps no longer
> work as one would expect them to.
>
> How do I remove an EntityProxy from its RequestContext? There doesn't
> seem to be a close() method or similar on RequestContext. When is the
> RequestContext set to NULL? How do I get sets/maps to work 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: Does the GWT "magic" ever fail you?

2011-11-14 Thread David Vree
On Nov 12, 12:36 pm, Thomas Broyer  wrote:
> On Saturday, November 12, 2011 6:17:59 PM UTC+1, David Vree wrote:
>
> Last year, they reworked the compiler internals to make it possible to
> optimize the output even more. That introduced a few bugs, but they were
> quickly patched (hey, Google relies heavily on GWT, and they all run "from
> trunk", so any bug they introduce hit them right away, and thus has to be
> fixed quickly.

The fact that Google is eating their own dog food with GWT is probably
one of the most important considerations.  Bugs happen, but their
motivation to address them quickly seems very high.  Thats good enough
for me.

-- 
You received 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: I want to learn GWT,..

2011-11-14 Thread mitel
good bookmark compilation here for gwt:
http://www.rushstart.net/google-web-toolkit.html

best regards



On Nov 2, 1:30 am, Robert Lockwood  wrote:
> I thank you kindly, sir!
>
>
>
>
>
>
>
>
>
> On Tue, Nov 1, 2011 at 12:32 PM, BM  wrote:
> > This is what I did to learn GWT.
>
> > 1) Go through the slides on here:
> >http://courses.coreservlets.com/Course-Materials/gwt.html
> > These slides are nice to give you little kick start. But don't doesn't
> > explain the newer GWT well enough.
>
> > 2) Buy the Manning's GWT in Action Second Edition MEAP. This book
> > rocks in every way. The above slides gives you a brief overview of GWT
> > but it is way old. Newer GWT is all about UIBinder instead of
> > Procedural Java programming. You need to understand UIBinder, GWT-RPC,
> > MVP with Activities and Places extremely well. The first few chapters
> > and these three I mentioned above are very important. Knowing about
> > different widgets and panels can be learn as you go. But the above
> > three would make you very comfortable as most of the newer GWT code
> > are using UIBinder and Activities and Places.
>
> > Remember, there is no right way or wrong way. You can design page in
> > any way you want. Ultimately it all gets converted to JavaScript. It
> > all comes with more hands on you have better you get at it and what's
> > your needs are really.
>
> > 3) Then go through documentation and tutorial on Google's GWT site.
> >http://code.google.com/webtoolkit/doc/latest/tutorial/index.html
>
> > 4) You can then read the remaining chapters from the book as you start
> > getting comfortable like: JUnit testing, Deferred binding,  Gin/Guice.
> > I prefer to use JUnit testing using mockito and it all depends on how
> > to really do code splitting. What's should be your ideal views and
> > what should be inside activities.
>
> > Hope that helps.
>
> > On Oct 31, 9:54 am, Brandon Donnelson  wrote:
> > > Here are some videos I've done to help folks get going.
>
> > >http://www.youtube.com/playlist?list=PL29B4CCEF46EFF4F2&feature=viewall
>
> > > Brandon Donnelsonhttp://gwt-examples.googlecode.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> When I was 12 I thought I would live forever.
> So far, so good.

-- 
You received 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: Display first web page in GWT

2011-11-14 Thread Jonathan Gossage
I have also tried not setting a background image so only the border should
be displayed. Since this is not happening I have to assume that:

a) The panel is not being rendered.
b) The stylesheet entry is being ignored.

On Mon, Nov 14, 2011 at 1:53 PM, Jonathan Gossage wrote:

> Thanks for your suggestions. I have tried all your suggestions but still
> nothing is displayed. I tried stepping through the code after
> onModuleLoad() but could not find anything suggestive of a problem.
>
> 2011/11/14 gerry 
>
>> Hi,
>>
>> You have to put your images and other static files inside the war
>> directory. And mind the fullstop (.) before the css rule:
>> .appbackground {
>> background-image: url   (images/background.jpg); // provided that you
>> have an the forlder images under war folder
>> width: 80%; height: 80%;
>> border: 10px solid red; // You have to separate those with a space, I
>> don't think comma is working
>> }
>>
>> On 13 Νοέ, 17:51, Jonathan Gossage  wrote:
>> > I am a complete beginner with GWT and web development generally and I
>> > trying to build a GWT app using baby steps so I can understand each
>> > step. I have created a tiny app that simply as a styled layout panel
>> > in the RootPanel. My code in onModuleLoad is:
>> >
>> > public void onModuleLoad() {
>> > LayoutPanel p = new LayoutPanel();
>> > p.setStylePrimaryName("appbackground");
>> > RootLayoutPanel.get().add(p);
>> > p.setVisible(true);
>> > }
>> >
>> > and I have the following entry in the application style sheet:
>> >
>> > appbackground {
>> > background-image: url   (WEB-INF/images/background.jpg);
>> > width: 80%; height: 80%; border: 10px,solid,red;
>> >
>> > }
>> >
>> > My problem is that I do not see any evidence of the styling in the
>> > displayed web page. I have verified that the onModuleLoad() method is
>> > being called. Can anyone spot what I  could be doing wrong:
>> >
>> > Jonathan Gossage
>>
>> --
>> You received 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: GWT HTTP RequestBuilder

2011-11-14 Thread karun
Thanks Thomas and jens for your help

i am planning to use CORS for time being. later i will use  reverse
proxy approach.

Regards
kumar

On Nov 14, 12:24 am, Thomas Broyer  wrote:
> On Sunday, November 13, 2011 7:59:38 PM UTC+1, karun wrote:
>
> > Hi Jens
>
> > Yes i am sure, i got response code as 200 and the jsp from J2EE server
> > is also getting displayed,
>
> > sorry for typo  my application is in server 2 and J2EE application is
> > in server 1.
>
> > to overcome SOP only, we have setup the 2 servers in above format. so
> > that domain name and port are same, both servers end with
>
> > 1. example.com
>
> > 2. and also both servers have same port no. 8111
>
> That's not enough: factory-dev03.example.com is different from
> factory-dev109.example.com, so they're different origins.
>
> > when i went through the sop policy in gwt documentation,
>
> Seehttp://en.wikipedia.org/wiki/Same_origin_policy, 
> andhttp://www.schemehostport.com/2011/10/foundations-origin.html
>
>
>
>
>
> > i came across
> > below way of  loading images and javascript files from different
> > server. which i felt is similiar to our setup.
>
> >  part of documentation is pasted below:
>
> > "However, many organizations setup their deployment platform in such a
> > way that their main host HTML page is served up fromhttp://mydomain.com/,
>
> > but any other resources such as images and JavaScript files are served
> > up from a separate static server underhttp://static.mydomain.com/. In
> > older versions of GWT, this configuration would not be possible as the
> > SOP prevented the GWT bootstrap process from allowing script from
> > files that were added from a different server to access the iframe in
> > the main host HTML page. As of GWT 1.5, the bootstrap model now
> > provides support for this kind of server configuration via the cross-
> > site linker (xs-linker).
>
> > When using the cross-site linker the compiler will still generate a
> > .nocache.js that you will want to reference within your
> > index.html. The difference though, is that the .nocache.js
> > produced by the cross-site linker will link in a cache.js file for
> > each of your permutations rather than a cache.html file.
>
> > To enable the cross-site linking simply add the following to your
> > .gwt.xml and include a reference to your .nocache.js
> > in your index.html as you normally would.
>
> > 
> > "
> > according to this doesn't our setup overcome SOP.
>
> That's only about serving the GWT files from another server, it doesn't
> change anything about RPC/RequestFactory/RequestBuilder: they have to be
> issued by the same origin (your HTML host page) as the one they try to
> reach (or they can use CORS in non-IE browsers).
> In other words, the URL you see in your browser should be factory-dev109 if
> your servlets are on that server; you can serve the *.nocache.js and
> associated *.cache.* files from the factory-dev03 server.
>
> Also, note that the "xs" linker is being deprecated in favor of the
> "xsiframe" linker.- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

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



HTML page into GWT tabpanel

2011-11-14 Thread Claudio Pomo
Hi! I've developed my GWT application and I need to integrate an html
page in a tabpanel of my page designed with the gwt designer.
I use this  code

@UiField Frame report;
@UiField TabPanel details;
publicClass(){
initWidget(BINDER.createAndBindUi(this));
fillOne();
fillTwo();
fillThree();
details.add(report);
}


[DESIGNER]



http://www.google.com"; 
width="100%" height="100%"
ui:field="report" title="Dati Generali"/>

.

but when I run my app I can't fire any page set in wiget report.

-- 
You received 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: EntityProxy & equals

2011-11-14 Thread Hilco Wijbenga
On 14 November 2011 12:49, Robert Quinn  wrote:
> I also have collections of EntityProxys, but I make the lifetime of
> the collection the same as the lifetime of the RequestContext.
>
> So after I do a CRUD operation, I refresh my collections in the new
> RequestContext, and therefore don't have any inter-RequestContext
> problems.

That just doesn't seem feasible, I'm afraid.

Basically what I do is the following:
1) request a list of proxies from the database (List, "list");
2) unrelated, at a later time in another place, new RequestContext for "entity";
3) add one proxy ("proxy") from "list" to a Set ("set");
(this "set" is part of "entity")
4) RequestContext.fire();
5) onSuccess();
6) unrelated, at a later time in another place, check that
entity.set.contains(proxy).

Is this really such a strange scenario?

Why would EntityProxyCategory.equals() include requestContext()? What
would be the impact of removing that particular check?

How do I get an EntityProxy to have a NULL RequestContext?

-- 
You received 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: Sessions and Activities and Places

2011-11-14 Thread Mike Dee
I think I've found a good way to handle this.  It really is pretty
easy.

I subclassed PlaceController and override it goTo() method.  It looks
like this:

public void goTo( Place newPlace )
{
if( isLoggedIn )
super.goTo( newPlace );
else
super.goTo( new LoginPlace() );
}

It seems to work well.  Handles pages that are bookmarked and the back
button.

On Nov 12, 5:43 pm, Mike Dee  wrote:
> What is a good way to have a GWT app redirect to a login screen when a
> session expires?  I've just hooked up a login page and a logout button
> at an Activities and Places app.  I basically handle this through the
> event bus with login and logout events (haven't hooked up a session
> time out yet).
>
> The events work nicely.  After logging in, the main place appears in
> the app.  When logging on, the login place appears.  Very nice.
>
> However, nothing prevents a user from accessing a place within the app
> - either by bookmarking or using the back button after logging out.
> I've experimented with a few things, but don't like any of them.  For
> example, in the AppActivityMapper if the user is not logged in, it
> goes to the login place regardless of the requested place.  I don't
> like this because the URL still shows the requested place.
>
> It looks like a central place to handle this is in
> PlaceController.goTo().  While looking at the source, it appears that
> changing places is handled via the event bus.
>
>     String warning = maybeGoTo(newPlace);
>     if (warning == null || delegate.confirm(warning)) {
>       where = newPlace;
>       eventBus.fireEvent(new PlaceChangeEvent(newPlace));
>
> Has anyone tried overriding this to handle loggin/logout?

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



Is there a way to include arbitrary .java files into my gwt module?

2011-11-14 Thread Stephen Buergler
I want to use java files in the libraries that I am using with my gwt 
module. Is there a way to include them without copying them into an emul 
directory and using ? How does gwt-user.jar get included? I 
am using Eclipse.

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



Re: Is there a way to include arbitrary .java files into my gwt module?

2011-11-14 Thread Hilco Wijbenga
On 14 November 2011 17:50, Stephen Buergler  wrote:
> I want to use java files in the libraries that I am using with my gwt
> module. Is there a way to include them without copying them into an emul
> directory and using ? How does gwt-user.jar get included? I am
> using Eclipse.

I have not needed this so far, so no guarantees, but ... did you try
just including the supporting code on the classpath? You'll need to
include the source code as well. I'm guessing you'll probably need to
create a separate GWT module for such code but that would be easy
enough, I suppose.

If the code you want to include uses features that are not available
in GWT (such as Thread or ClassLoader) then, of course, things become
much harder (if not impossible). That's where super-source *might* be
helpful. But at that point you're probably better off trying a
different approach altogether.

-- 
You received 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: EntityProxy & equals

2011-11-14 Thread -sowdri-
I use this class for copying proxies across contexts. May be helpful in 
your case too:

/**
 * Convenience method to copy an entity proxy to another request context.
 * 
 * @author sowdri
 * 
 */
public class RequestFactoryUtils {

public static  T copy(Class clazz, T proxy,
RequestContext context) {

T newProxy = context.create(clazz);

if (proxy != null) {

AutoBean oldBean = AutoBeanUtils.getAutoBean(proxy);
AutoBean newBean = AutoBeanUtils.getAutoBean(newProxy);
AutoBeanCodex.decodeInto(AutoBeanCodex.encode(oldBean), newBean);

// newBean.setFrozen(true);
newProxy = newBean.as();
}

context.edit(newProxy);

return newProxy;
}
}

-- 
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/-/66sRjJbFRp4J.
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.



GXT Deferred Binding for Changing views

2011-11-14 Thread shrekjo
Hello All,

I am using Gxt 2.2.5 and Gwt 2.3.0  to create an application for
mobile and desktop browsers. I want to use deferred binding concept as
mentioned in  
http://www.google.com/events/io/2011/sessions/using-gwt-and-eclipse-to-build-great-mobile-web-apps.html.
But I am unable to replicate the same in Gxt MVC structure. Can
someone guide me through this ? Some working sample examples to get
started .

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.