Integrating RequestFactory into an eclipse project

2011-08-17 Thread Spundun
Hi all,

I'm trying to add RequestFactory and objectify to my existing eclipse
project that uses GPE and GAE.

The page 
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

has the following instructions in the sectioin titled wiring

Add the following jars to your WEB-INF/lib directory:

requestfactory-server.jar
javax/validation/validator-api-1.0.0.GA.jar
A JSR 303 Validator of your choice, such as hibernate-validator


my question is, where do I find the requestfactory-server.jar file?
What do I use as a validator of my choice that I can use with GAE
and which is easily gettable?

Also, this process feels very clunky compared to the rest of the GPE
experience, is there any plan to integrate it into GPE?

p.s.: I haven't been able to do anything through maven yet. THe
closest I got was when Run As- Maven install failed with error You
must use a 32-bit Java runtime to run GWT Hosted Mode. I'm on mac.

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



requestfactory security problem

2011-08-17 Thread July
hello all:
  I'm using GWT 2.3 requestfactory+ GAE 1.5 user authentication for my app, 
it only allows authenticated people to access, implemented as below:
if the user has not login to Google, redirect him the Google login screen.
if yes, check if he has the right to access. if yes display the web UI to 
user. or display error screen.

My question is:
1. Do i have to check every gwtrequest to ensure the security? i mean, use a 
filter to check every gwtrequest to see if the user has the right to access. 
if so, the application is more secure but have to process much more extra 
payloads.
2. If i just use the login authentication but does not check every gwt 
requests after that, is there risk that un-authorized people may be able to 
access my app? Does requestfactory automatically have ways to protected 
this?

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/-/h0Nx1ecMf2sJ.
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: Dynamically editing list of ValueProxies with ListEditor

2011-08-17 Thread Mihail Lesikov
 What version of GWT  you are using  ?


GWT 2.4 rc1



 What happens if you try something like:

 PhoneNumber p1 = request.create(PhoneNumber.class);
 PhoneNumber p2 = request.create(PhoneNumber.class);

 p1.setValue(234234234);
 p2.setValue(12312);

 p1.equals(p2)
 ?


p1.equals(p2)
the result is false

-- 
You received 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: Dynamically editing list of ValueProxies with ListEditor

2011-08-17 Thread Mihail Lesikov

 listEditor.getList().remove(phoneNumber); // phone number is the last proxy
 in the list

 1) as a result, the first element in the list is always removed

2) when flush is called on the contactEditor(parent editor that contacs the
 driver), no values are filled in the list of phoneNumbersProxies


 The problem here is related with issue
http://code.google.com/p/google-web-toolkit/issues/detail?id=6081 - bug with
the RequestFactoryEditorDriver,
 With the SimpleBeanEditorDriver instead
of RequestFactoryEditorDriver everything works fine.


Other thing that i noticed is that every valueProxy.hashCode() is the same
 as others from that type.


Newly created proxies without any changes on their properties:
PhoneNumber p1 = request.create(PhoneNumber.class);
PhoneNumber p2 = request.create(PhoneNumber.class);

p1.equals(p2) is true (same hashCode)
don't know why?

-- 
You received 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: FlexTable RowSpan problem

2011-08-17 Thread Paul Robinson


On 16/08/11 21:47, Ivan Pulleyn wrote:


I've recently experienced similar bugs in FlexTable and had to work around it 
by next my tables and never using colSpan. I'm curious if GWT 2.4 will fix this 
but I haven't had the chance to look into it.


This is not a bug in GWT, it is the way html tables work.

Paul

--
You received 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 set the selection color of a CellList widget?

2011-08-17 Thread ozgur aydinli
Hi Rod,

You can extend CellList.Resources interface and create the cell list
with your new Resources.


public interface MyCellListResources extends CellList.Resources {

@Source(MyCellList.css)
Style cellListStyle();
}

and in your MyCellList.css override all of the rules and change what
ever you want:

.cellListWidget {

}

.cellListEvenItem {
  cursor: pointer;
  zoom: 1;
}

.cellListOddItem {
  cursor: pointer;
  zoom: 1;
}

.cellListKeyboardSelectedItem {
  background: red;
-- This is what
you are looking for.
}

@sprite .cellListSelectedItem {
  gwt-image: 'cellListSelectedBackground';
  background-color: #628cd5;
  color: white;
  height: auto;
  overflow: visible;
}


And finally,

CellList.Resources resources = GWT.create(MyCellListResources.class);
CellListContact cellList = new CellListContact(new ContactCell(),
resources);


You should see a red background when you select an item from the
cellist.



On Aug 15, 12:31 am, Rod Trendy rod.tre...@googlemail.com wrote:
 Hello everyone,

 I can't help it anymore. I am really stuck on the CellList. Creating
 and working with a CellList is quite simple, but I can't change the
 style of the CellList.

 I search the internet via Google but I couldn't find any results that
 'really' helped me out. I just want to be able to change the
 background color of a selected cell, but whatever I try the color
 won't change from yellow to blue. All I've got so far is changing the
 whole background of the celllist into blue (including the cells which
 are not selected) but that's getting me nowhere.

 Please, can anyone help me out? I really would like to have a step by
 step guide for this problem. I am exhausted :(

 Regards, Rod

-- 
You received 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: UI Binder Button Problem

2011-08-17 Thread walker1c
Hi Alex,

That would be a start.

Does the tag in your post work?  The Javadoc at
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/CustomButton.html
shows upFace as a sub-node of the PushButton tag. If I'm reading the
UIBinder documentation correctly, upFace can only be an attribute of
the PushButton tag if the class has a method called setUpFace().

As a matter of fact this seems to be really a problem with UiBinder
and PushButton.  I've converted my button to @UiField(provided =
true), and I'm loading the images direct from URLs when I construct
the PushButton, and even then the button isn't rendered.

Thanks for the reply.

Chris


On Aug 16, 3:00 pm, Alex Dobjanschi alex.dobjans...@gmail.com wrote:
 What are you trying to do exactly? Setting the upFace of a PushButton?

 Then go with
 {{{
    g:PushButton ui:field=button
           upFace={img.button} /

 }}}

 (not sure highlight will work)

-- 
You received 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: FlexTable RowSpan problem

2011-08-17 Thread Ivan Pulleyn
Maybe this is a misunderstanding on my part then. When I insert at (0,0)
with colspan=2, then I was expecting that a subsequent insert at (0, 2)
would be the next cell over. HoweverFlexTable sticks an empty cell in
between, resulting in 3 cells existing in the table rather than 2, which is
what I expected.

In html terms, if I write trtd id=abc colspan=2.../tdtd
id=xyz/td/tr, is the index of td xyz 0,1 or 0,2? I was assuming it's
at grid position 0,2.

If I'm wrong, then the documentation is confusing because there are two
meanings of column, one for indexing the table and one for spanning.

Ivan...

On Wed, Aug 17, 2011 at 2:11 PM, Paul Robinson ukcue...@gmail.com wrote:


 On 16/08/11 21:47, Ivan Pulleyn wrote:


 I've recently experienced similar bugs in FlexTable and had to work around
 it by next my tables and never using colSpan. I'm curious if GWT 2.4 will
 fix this but I haven't had the chance to look into it.

  This is not a bug in GWT, it is the way html tables work.

 Paul

 --
 You received 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.comgoogle-web-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to google-web-toolkit+**
 unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-web-toolkit?hl=enhttp://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 do user simple user authentication and provide a different module for different user types?

2011-08-17 Thread Sérgio Miguel Neves Lopes
Thank you for the suggestions. I've been looking at Apache Shiro and it seems 
I'm going to use it as soon as I can manage to incorporate it into my 
application.

On 2011/08/16, at 19:14, Juan Pablo Gardella wrote:

 You can see Spring Security or Apache Shiro. This frameworks are easy and 
 mature.

-- 
You received 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: Getting Height of cell table

2011-08-17 Thread BST
Managed to find a solution: updating it below.

I am adding a handler to the celltable when the celltable updates it rowdata 
automatically a valueChange event is fired, so making use of it. Had to go 
thru the source code for this.

.addHandler(new ValueChangeHandlerMyDTO() {

@Override
public void onValueChange(
ValueChangeEventMyDTO event) {
CellTableMyDTO table 
= (CellTableMyDTO) event.getSource();


String height = 231 + table.getOffsetHeight() + px;

Window.alert(Value Change Height  + height);

}

},ValueChangeEvent.getType() );

-- 
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/-/DFvW8UQ8ge4J.
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: Custom Handlers for CellTable

2011-08-17 Thread BST
A solution for adding ValueChange Handler:

https://groups.google.com/d/topic/google-web-toolkit/yN3K778FVsU/discussion

-- 
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/-/07lC6wvEExsJ.
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: CellTable

2011-08-17 Thread BST
Is it like a Cell Table that directly edits csv files or something like 
that?

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



Re: MenuBar working well in hosted page but not in the others

2011-08-17 Thread BST
I just tried the example that you posted. It works for me. I am getting an 
alert whenever I select Bold or A or B. Are you expecting something else?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NPLdwKrrHCQJ.
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 security problem

2011-08-17 Thread July
Thanks for reply, but seem both links you provided can not be opened. i use 
GWT2.3 and seem no UserInformation defined?

-- 
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/-/YsMAgLymdswJ.
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 security problem

2011-08-17 Thread BST
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/requestfactory/server/RequestFactoryServlet.html

Message in the above link 

RequestFactory has moved to com.google.web.bindery.requestfactory. This 
package will be removed in a future version of GWT.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Jq9RkDyd-gMJ.
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.



Aw: Re: requestfactory security problem

2011-08-17 Thread Jens
The UserInformation class is old. 

You have to write a ServletFilter that does the authentication for every 
request and you may also want a custom RequestTransport implementation for 
RequestFactory. Take a look at the mobilewebapp sample in GWT 2.4 release 
branch or trunk to see how you can implement it.

-- 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/-/MHN43fCuy7oJ.
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 do I load test data into my Widget

2011-08-17 Thread BST
I guess what you are looking for is uploading the files or keeping the files 
in server and displaying the list of available files in a location at server 
or war file and when clicked display the contents of the file.

-- 
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/-/WXMG2Pe-sC4J.
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: Re: requestfactory security problem

2011-08-17 Thread Mihail Lesikov
Check this  topic -
https://groups.google.com/forum/?pli=1#!searchin/google-web-toolkit/RequestFactory$20security|sort:date/google-web-toolkit/BBG4ivoedLM/BE6BTl8ikSEJ


 Have a look at how the Expenses sample uses Google AppEngine's UserService
to authenticate users with RequestFactory:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/
 

-- 
You received 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 test presenter that is activity

2011-08-17 Thread tanteanni
On of the main advantages of MVP-patrtern propagated is testability because 
if implemented correctly there is no need for GWTTestCase. But if i use 
MVP in conjunction with activities  places - meaning presenters become 
activities - this advantage seem to gone?! Beeing a presenter and activity 
at the same time means knowing something about PlaceController - to go to 
other places or to deserialize the state of current place. (If 
PlaceController is involved the need for GWTTestCase arose.)

At the moment i see some alternatives:
- testing the old way with GWTTestCase
- separating activity and presenter (separating navigation logic from 
business-logic, the pattern is know MVPA)
- make activity more testable (how? give a null-PlaceController in 
constructor?)

My Question is: Is there a best or at least good practice to test/implement 
such presenters? (the first 2 alternative are the worst in imho)

-- 
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/-/3_fACom4yUEJ.
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 MenuBar : how to set size and spacing between the element

2011-08-17 Thread saurabh saurabh
Hi everyone,
I have made a Composite widget as header of page.
Now I encounter these few problems here:

1) I am not able to set the size of MenuBar. Whatever I set the width,
I see no changes over the web page.

2) I want some custom styling of my MenuBar like the space or padding
between the menuitems of my main menu (horizontal). and I want that
the first menuitem should start with a certain space from left (left
margin). but  I am not able to find anything on these topics.

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 2.3: Activities and Automatic Event Deregistration

2011-08-17 Thread objectuser
Handlers added to the eventBus passed to the Activity.start method are not 
automatically deregistered for me.  I'm guessing it's my code, since I don't 
see much recent discussion about this.  I don't throw away my activities 
each time, so maybe that's my issue.  But reading the documentation makes me 
think this should work.

From the javadoc of start:

Any handlers attached to the provided event bus will be de-registered when 
the activity is stopped, so activities will rarely need to hold on to the 
HandlerRegistrationhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/event/shared/HandlerRegistration.htmlinstances
 
returned by EventBus.addHandler(com.google.gwt.event.shared.GwtEvent.Type, 
H)http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/event/shared/EventBus.html#addHandler(com.google.gwt.event.shared.GwtEvent.Type,
 
H).

However, if I have:

@Override 
public void start(AcceptsOneWidget panel, EventBus eventBus) { 
panel.setWidget(view); 

placeChangeRegistration = 
eventBus.addHandler(PlaceChangeEvent.TYPE, new PlaceChangeEvent.Handler() { 
@Override 
public void onPlaceChange(PlaceChangeEvent event) {
doSomething();
} 
}); 
}

The handler is triggered even after onStop is called in my activity.  I also 
tried holding on to the registration (as above) and removing it in onStop 
and the handler is still called.

Does anyone have an idea of what I might be doing wrong?

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/-/GjwWA8iibuQJ.
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 test presenter that is activity

2011-08-17 Thread Nicolas Antoniazzi
If you use MVP, you might use some kind of factory for your objects, like
the PlaceController.
The best is to use dependency injection for this (with Gin).
The PlaceController is Injected in the Activity (or in your custom factory).

When it comes to testing, you can use a special factory (or injection) that
implements a Testable PlaceController)


2011/8/17 tanteanni tantea...@hotmail.com

 On of the main advantages of MVP-patrtern propagated is testability because
 if implemented correctly there is no need for GWTTestCase. But if i use
 MVP in conjunction with activities  places - meaning presenters become
 activities - this advantage seem to gone?! Beeing a presenter and activity
 at the same time means knowing something about PlaceController - to go to
 other places or to deserialize the state of current place. (If
 PlaceController is involved the need for GWTTestCase arose.)

 At the moment i see some alternatives:
 - testing the old way with GWTTestCase
 - separating activity and presenter (separating navigation logic from
 business-logic, the pattern is know MVPA)
 - make activity more testable (how? give a null-PlaceController in
 constructor?)

 My Question is: Is there a best or at least good practice to test/implement
 such presenters? (the first 2 alternative are the worst in imho)

 --
 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/-/3_fACom4yUEJ.
 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 do I load test data into my Widget

2011-08-17 Thread DemiSheep
I am trying to write a widget which will be used to attach notes to
documents. So I am trying to setup a mock environment to simulate
this. My main focus is the notes for the documents, which I can store
anywhere, but I had thought I'd store them at the end of the files I
am viewing. Is there a place I can store the data files to be access
the way I need without a lot of trouble? :)

On Aug 16, 3:33 pm, Jim Douglas jdou...@basis.com wrote:
 Set aside implementation details for a second; what are you actually
 trying to accomplish?

 The short answer, to respond to the question as you've phrased it
 here, is that it's impossible(*) to write a browser-based application
 (with GWT, hand-crafted JavaScript, or any toolkit) that will
 programmatically retrieve a list of files on the client.  Browser
 security rules forbid anything like that (for obvious reasons -- it
 would be Very Not Good if any random web page had the ability to go
 snooping around in your filesystem).

 (*) In this context, impossible disregards messing around with local
 security policy files and/or using browser-specific hacks.

 On Aug 16, 12:14 pm, DemiSheep andre.fl...@gmail.com wrote:

  I am using the Google Toolkit and I have created a widget with a
  listbox, vertical split panel and a couple of buttons. What I am
  trying to do is have a list of files in a local directory listed in
  the listbox and I want to be able to click on a file and have it
  displayed in the top part of the split panel. I found out the hard way
  about browsers and file IO and not being able to use java.io.File.

  What are my options? Can I put the data files inside a jar or
  something and have the widget read it in that way? I need to do this
  as a test run, to implement an new feature with working with the data.
  It's not going to be any kind of final server hosted application, I am
  not concerned about how the actual files will be loaded in the future.

  Any suggestions would be greatly appreciated.

  Respectfully,
  DemiSheep

-- 
You received 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 2.3: Activities and Automatic Event Deregistration

2011-08-17 Thread objectuser
I might understand this better.  It seems like the event registration is 
still fired in the event cycle that causes the onStop method to be called. 
 After that, subsequent events don't activate that registration. 
 Confirmation is welcome. :)

-- 
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/-/4OcAMaMG2jQJ.
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 do I load test data into my Widget

2011-08-17 Thread DemiSheep
Can I put the files in a war file and have the client open the files
for viewing?? What you described is exactly what I want to do. Click
on a available file in a list and then have it displayed in another
panel. Then my main focus is to attach a note to the file.

On Aug 17, 7:01 am, BST babusri...@gmail.com wrote:
 I guess what you are looking for is uploading the files or keeping the files
 in server and displaying the list of available files in a location at server
 or war file and when clicked display the contents of the file.

-- 
You received 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 MenuBar : how to set size and spacing between the element

2011-08-17 Thread saurabh saurabh
Ok I got an answer CSS styling  and I need to override the particular
style already given in extended CSS style.

Sorry for bothering for such a silly question.

-- 
You received 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 test presenter that is activity

2011-08-17 Thread tanteanni
thx i already use gin. but how to get a testable PlaceController - 
Placecontroller is a class not an interface? my only idea is to give null?

-- 
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/-/2rENUIKK3DwJ.
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 test presenter that is activity

2011-08-17 Thread Nicolas Antoniazzi
Yes, indeed, I did not realized this !
That's a good question :) !

2011/8/17 tanteanni tantea...@hotmail.com

 thx i already use gin. but how to get a testable PlaceController -
 Placecontroller is a class not an interface? my only idea is to give null?

  --
 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/-/2rENUIKK3DwJ.

 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.



Problem in Tabbing on a Button

2011-08-17 Thread Manish
I have a Flowpanel in which I inturn add Deckpanel and ButtonPanel Now
this Deckpanel have Dynamic GWT Companents added and ButtonPanel have
Buttons which are disabled and enabled Dynamically.My issue is when I
try to do tab movement then tab movement/shift-tab movement from
ButtonPanel to Deckpanel and viceversa is not smooth taabing order
breaks while moving from one component of one panel to other component
of other.

Regards
Manish

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

2011-08-17 Thread Jesper Rønn-Jensen
Jason Yin wrote:

 just upgraded to firefox 6 today.. and realized GWT Developer plugin isn't 
 compatible with it.


Just to add to the thread: I changed version numbers inside the .xpi
file. But FF6 still complaints that it is incompatible. So I guess we
must have to wait for a release


Please keep us informed in this thread of:
* official updates to the gwt-dev-plugin.xpi
* any unofficial releases that work for FF6


Thanks!
/Jesper Rønn-Jensen
www.justaddwater.dk

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



Trouble with List Editors

2011-08-17 Thread Maiku
Hello,

I have a model that contains a List of Language objects (which just
contain a string for the language code and boolean to denote
default).  I am trying to setup a List Editor like that shown in
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/FavoritesWidget.java
for that model (with the major change that I am using
SimpleBeanEditorDriver instead of RequestFactoryEditorDriver).

However, during the creation of the LanguageEditor from the
LanguageListEditor.LanguageEditorSource's create method, it dies on
the call to uiBinder.createAndBindUi. The error seems to refer to
native javascript and I am unsure of how to debug it any further. Does
anyone have suggestions of what is the problem or how I can track it
down further?


22:09:04.490 [ERROR] [viewappdesigner] Failed to create an instance of
'vivid.client.widget.LanguageListEditor' via deferred binding

com.google.gwt.core.client.JavaScriptException: (TypeError):
__static[458906].call is not a function
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.dom.client.DOMImpl.createElement(DOMImpl.java)
at com.google.gwt.dom.client.Document$.createDivElement$
(Document.java:290)
at com.google.gwt.user.client.ui.HTMLPanel.lt;initgt;
(HTMLPanel.java:79)
at
vivid.client.widget.LanguageEditor_LanguageEditorUiBinderImpl.createAndBindUi(LanguageEditor_LanguageEditorUiBinderImpl.java:
13)
at
vivid.client.widget.LanguageEditor_LanguageEditorUiBinderImpl.createAndBindUi(LanguageEditor_LanguageEditorUiBinderImpl.java:
1)
at vivid.client.widget.LanguageEditor.lt;initgt;
(LanguageEditor.java:50)
at vivid.client.widget.LanguageListEditor
$LanguageEditorSource.create(LanguageListEditor.java:47)
at vivid.client.widget.LanguageListEditor
$LanguageEditorSource.create(LanguageListEditor.java:1)
at
com.google.gwt.editor.client.adapters.ListEditorWrapper.add(ListEditorWrapper.java:
50)
at vivid.client.widget.LanguageListEditor.lt;initgt;
(LanguageListEditor.java:76)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
465)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at
vivid.client.view.ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.createAndBindUi(ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.java:
26)
at
vivid.client.view.ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.createAndBindUi(ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.java:
1)
at vivid.client.view.ApplicationDialogViewImpl.lt;initgt;
(ApplicationDialogViewImpl.java:77)
at vivid.client.ClientFactoryImpl.lt;clinitgt;
(ClientFactoryImpl.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
654)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
458)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at vivid.client.ViewAppDesigner.onModuleLoad(ViewAppDesigner.java:
44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
193)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Unknown Source)

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

RequestBuilder POST problem

2011-08-17 Thread Max
Hello,

I'm sending a POST request to my webserver (let's call it server A)
from RequestBuilder, which returns JSON representation of the object
being created.
In my callback method I refresh the UI to reflect the changes.
Everything works fine, while I use server A as a host name in the
browser's address string.

There is another server in our system, which acts like a proxy to
server A, which is a machine running nginx server (server B). It has a
different DNS, though I expect everything to work smoothly anyway.

When I execute the exact same async POST request to server B, the
callback code gets executed after some delay (around 40-60 seconds),
though my firebug shows that the response is already received... I
don't know why the delay is happening.

Any idea why it can happen? Note, that the application still works as
expected on server B: the callback code gets executed, but it takes
some time and the browser does nothing for 40-60 seconds, when the
response is received already.

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.



Re: how to test presenter that is activity

2011-08-17 Thread Nicolas Antoniazzi
One solution could be to create an interface in your project around
PlaceController and bind this interface on an inherited version of
PlaceController. Then, inject the interface instead of the concrete
implementation.

But there is certainly an easyier way of doing it...

2011/8/17 Nicolas Antoniazzi nicolas.antonia...@gmail.com

 Yes, indeed, I did not realized this !
 That's a good question :) !

 2011/8/17 tanteanni tantea...@hotmail.com

 thx i already use gin. but how to get a testable PlaceController -
 Placecontroller is a class not an interface? my only idea is to give null?

  --
 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/-/2rENUIKK3DwJ.

 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 test presenter that is activity

2011-08-17 Thread objectuser
Maybe I'm not understanding the issue, but can't you just create a place 
controller like so:

@Provides
 @Singleton
 PlaceController createPlaceController(EventBus eventBus, 
PlaceController.Delegate delegate) {
return new PlaceController(eventBus, delegate);
 }


Put whatever in the delegate you like (I put a mock in there and ignore it). 
 It works for me in unit tests.

placeController.goTo(new MyPlace());



-- 
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/-/Kjj82sgnCZoJ.
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 test presenter that is activity

2011-08-17 Thread tanteanni
i didn't know about this nice constructor - thx objectuser!

i'll try it :-)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/o-kXOhM2fzsJ.
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 test presenter that is activity

2011-08-17 Thread tanteanni
on additional question about the mock PlaceController: i guess the normal 
PlaceController is the source of PlaceChangeEvents, isn't it? Is it possible 
to let the mock fire such events on call of goTo in PlaceController? (Will 
the PlaceController delegate goTo-calls to it's delegate?)
it would be great if i could test the navigation logic without gwtTestcase

-- 
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/-/DVStR-f6ZMUJ.
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 test presenter that is activity

2011-08-17 Thread objectuser
The delegate appears to be irrelevant in unit tests.  I test 
my navigation using placeController.goTo as I show above.  My activities 
start, stop, etc.  So it works out very well, I think.

-- 
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/-/FjORxccfyW8J.
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: CellTree and SelectionModel

2011-08-17 Thread tom
Now got it working with SingleSelectionModel. The first time I tried
it, the SingleSelectionModel wasn't working properly because it lacked
a ProvidesKey to distinguish my EntityProxies.

On 12 Aug., 15:40, tom majortom...@gmail.com wrote:
 Hi,

 As a workaround, I've implemented onBrowserEvent() in the Cells I use to
 display my data.

 Like 
 here:https://groups.google.com/d/topic/google-web-toolkit/mWdBS9kavuc/disc...

 Still interested in a clean solution via SelectionModel.

-- 
You received 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 test presenter that is activity

2011-08-17 Thread tanteanni
that means the PlaceController works as always?! it delgates only the 
GwtTestCase-needed-stuff? - great!

-- 
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/-/4vzAUk5y_W0J.
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: MenuBar working well in hosted page but not in the others

2011-08-17 Thread Marko Borges
Sorry! I forgot to tell. I have it working now! Thanks for trying to help.

Is there an easy way to insert blank space in Menu before inserting
MenuItems?
If there is a way without having to edit css would be perfect. I tried to
insert in an HorizontalPanel but my menu stays badly formatted inside of it
:(

2011/8/17 BST babusri...@gmail.com

 I just tried the example that you posted. It works for me. I am getting an
 alert whenever I select Bold or A or B. Are you expecting something else?

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/NPLdwKrrHCQJ.

 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: Re: requestfactory security problem

2011-08-17 Thread July
very helpful, Thank you all for the help

-- 
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/-/4byTLNJMcmMJ.
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 test presenter that is activity

2011-08-17 Thread objectuser
It works for me.  These are just JUnit tests (Jukito tests, specifically).

-- 
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/-/PGy-XD24Ux4J.
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 6

2011-08-17 Thread Jason Yin
Hi Chris

Thank you for your reply.

Jason

On Aug 16, 5:03 pm, Chris Conroy con...@google.com wrote:
 Jason,

 Unfortunately, for the time being we're unable to keep pace with Mozilla's
 new release schedule since the plugin update process is quite manual. We'll
 be sure to announce to the list when FF6 support is ready. In the meantime,
 you'll just have to fall back to =FF5 for DevMode.

 On Tue, Aug 16, 2011 at 3:51 PM, Jason Yin mypurchaseord...@gmail.comwrote:







  Hi

  just upgraded to firefox 6 today.. and realized GWT Developer plugin
  isn't compatible with it.
  any ETA on when this will be available?

  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.

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



Controlling Size(screen) on Mobile Device

2011-08-17 Thread Doug
Good Afternoon All,

What is the best way to control the size of a page on a mobile
browser?  For example, on the sample 'greeting' app that is created
when you create a new project is about 1/3 of the page with when
viewed in a normal browser.  If you view it on a mobile device it
takes up about 1/3 of the mobile browsers screen and is s small it
is unusable.  I know there is a way to make it bigger, but I am not
sure what it is.  Can anyone point me in the right direction?

Thanks,
Doug

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



Re: Activities and Places and Layouts (again)

2011-08-17 Thread DaveC
No worries :o)

On Aug 15, 7:10 pm, Mike Dee mdichiapp...@gmail.com wrote:
 Dave,

 I think you got it.  Double checked and wasn't setting height to
 100%.  Thanks, that seems to have done it.  Thought I was doing that.

 Mike

 On Aug 15, 9:01 am, DaveC david.andrew.chap...@gmail.com wrote:



  Hi Mike,

  I'm trying to understand your issue...

  I'm assuming that DockLayoutPanel is in an Activity and that you're
  adding it to the SimplePanel using panel.setWidget() in the start
  method...? (I don't want to teach you to suck eggs - but you can use
  Firebug (or similar) to check the DOM of your page and make sure the
  DockLayoutPanel is actually being added).

  If so, it sounds like you just need to force the DockLayoutPanel to be
  100% the height of it's container:

  dlp.setHeight(100%);

  If not I can give you a basic structure that at least works for me...

  Cheers,
  Dave

  On Aug 15, 3:51 pm, Mike Dee mdichiapp...@gmail.com wrote:

   I replaced RootPanel with RootLayoutPanel.

   Here is the EntryPoint from HelloMVP:

    private SimplePanel appWidget = new SimplePanel();
    ...
    RootPanel.get().add( appWidget );
    activityManager.setDisplay( appWidget );

   I replaced RootPanel with RootLayoutPanel:

    private SimplePanel appWidget = new SimplePanel();
    ...
    RootLayoutPanel.get().add( appWidget );
    activityManager.setDisplay( appWidget );

   Maybe I'm a little too naive in thinking that would do much.

   Also, when I look at the page source generated, it appears a DOCTYPE
   is already there.  Here is the page source generated by the GWT app
   (HelloMVP).

    !doctype html
    !-- The DOCTYPE declaration above will set the    --
    !-- browser's rendering engine into               --
    !-- Standards Mode. Replacing this declaration  --
    !-- with a Quirks Mode doctype may lead to some --
    !-- differences in layout.                        --

   If I create a simple GWT app (not Activities  Places) and plop a
   DockLayoutPanel in the RootPanel, it just works.  Fills the page
   nicely without having to add any onResize handlers.  Is there a reason
   why adding handlers would be needed in an Activities  Places
   framework (such as that provided by HelloMVP)?  I'd like to understand
   that a bit more.

   On Aug 15, 4:44 am, P.G.Taboada pgtabo...@googlemail.com wrote:

You need rootlayoutpanel, the host page should be in standards mode
( see doctype declaration).

Then you should look if all the panels being used implement provides
resize/ requires resize. That is the way resize events get propagated
to child elements in gwt.

On Aug 15, 8:00 am, Mike Dee mdichiapp...@gmail.com wrote:

 Getting started with Activities and Places.  I'd like to use a
 DockLayoutPanel to comprise the entire view (page).  When I try, it
 doesn't work.

 Note I'm using HelloMVP is a starting point and that in the EntryPoint
 a SimplePanel is set up as the default Panel.  I've tried adding a
 DockLayoutPanel to that.  I also tried first adding a VerticalPanel
 and then a DockLayoutPanel based on some suggestions here.

 The DockLayoutPanel simply doesn't display.  This was also mentioned
 in this message from last Oct:http://tinyurl.com/3z8mn4v.  The
 resolution there was to adjust the positioning styles to be absolute.
 However, they appear to already be absolute.

 I've played around with setting the width and height of the parent
 (SimplePanel) panel to 100%.  I've changed RootPanel to
 RootLayoutPanel in onLoadModule.  Nothing seems to work.  Seems like
 this would be something that is commonly done OR am I heading down the
 wrong path?

 Any ideas?
 Mike

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



WindowBuilderPro GwtJavaUI Composite and GWT UiBinder Composite

2011-08-17 Thread Luc
It's kind of newbie question..

I can't figure out how WindowBuilder manages panels in design view for
GWT Java UI and GWT UiBinder.
Everything seems fine when I follow the instructions in this tutorial
(http://code.google.com/javadevtools/wbpro/tutorials/
loginmanager.html), but when I try to do the same with UiBinder
(WindowBuilder  GWT Designer  GWT UiBinder  Composite) things're
getting complicated..
Adding title label and FlexTable into VerticalPanel is
straightforward. Then I should add some widgets onto FlexTable but I
can't. I don't understand why?
Moreover I've noticed that FlowPanel doesn't let to put Label and
another Label or TextBox in the same row, which for me is strange..

I would be grateful for any suggestions..

-- 
You received 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: Integrating RequestFactory into an eclipse project

2011-08-17 Thread Nick Chalko
What do I use as a validator of my choice that I can use with GAE
 and which is easily gettable?


http://www.hibernate.org/subprojects/validator.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.



StockWatcher JSON - tutorial

2011-08-17 Thread Gaurav
tried follwing stockwatcher GWT tutorial for using JSON data. Data on
the screen not getting refreshed but the call to the backend server is
successfull. adding new stocks to the list refreshes the data as
expected.
kindly help.
Regards,
Gaurav

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



java.lang.NoSuchMethodError: org.mortbay.thread.Timeout

2011-08-17 Thread Raja
Hello,

I'm new to GWT. I have created a Webapplication project. i have
defined a class called Abc.java, which will  use smartgwt libraries
for xpath.
I have created a JunitTest class to test this Abc.java.

My test class is as follows:



import com.google.gwt.core.client.GWT;
import com.google.gwt.junit.client.GWTTestCase;


public class AbcTest extends GWTTestCase{

public void testIsPasswordExpired() {

Abc abc = Abc.getInstance();
Password passwd = new Password(test12,01-01-2012);
abc.setPassword(passwd);
assertFalse(Password Expired But Allowed,abc.isPasswordExpired());
}
}



when i executed this test case, i got the following error.

Starting Jetty on port 0
   [WARN] failed org.mortbay.jetty.nio.SelectChannelConnector
$1@11587fb
java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.init(Ljava/
lang/Object;)V
at org.mortbay.io.nio.SelectorManager
$SelectSet.init(SelectorManager.java:306)
at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
223)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
303)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
667)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:
705)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:650)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
441)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:
79)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:
46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
197)
   [WARN] failed SelectChannelConnector@0.0.0.0:0
java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.init(Ljava/
lang/Object;)V
at org.mortbay.io.nio.SelectorManager
$SelectSet.init(SelectorManager.java:306)
at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
223)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
303)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
667)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:
705)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:650)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
441)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at

Re: How do I load test data into my Widget

2011-08-17 Thread DemiSheep
I think I'll just hard code a couple of the files for my purposes.

Respectfully,
DemiSheep

On Aug 17, 9:06 am, DemiSheep andre.fl...@gmail.com wrote:
 Can I put the files in a war file and have the client open the files
 for viewing?? What you described is exactly what I want to do. Click
 on a available file in a list and then have it displayed in another
 panel. Then my main focus is to attach a note to the file.

 On Aug 17, 7:01 am, BST babusri...@gmail.com wrote:

  I guess what you are looking for is uploading the files or keeping the files
  in server and displaying the list of available files in a location at server
  or war file and when clicked display the contents of the file.

-- 
You received 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: WindowBuilderPro GwtJavaUI Composite and GWT UiBinder Composite

2011-08-17 Thread Eric Clayberg
The tutorial you are referring to is for GWT Java, not UiBinder.

FlexTables don't allow children in UiBinder, so you can't add them in the 
design view either.

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



Best way to prevent dual login in gwt.

2011-08-17 Thread Daniel Mauricio Patino León
Some one can give me a idea of how to manage this? i dont want let
users log  in in my GWT app (pure GWT dom manipulation) in two places
at the same time, including the same browser (different tabs)

any help be apreciated

-- 
You received 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: Best way to prevent dual login in gwt.

2011-08-17 Thread Juan Pablo Gardella
See apache shiro or spring security. You must manage authentication and
authorization in server side

2011/8/17 Daniel Mauricio Patino León ceo.lion@gmail.com

 Some one can give me a idea of how to manage this? i dont want let
 users log  in in my GWT app (pure GWT dom manipulation) in two places
 at the same time, including the same browser (different tabs)

 any help be apreciated

 --
 You received 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: Best way to prevent dual login in gwt.

2011-08-17 Thread Daniel Mauricio Patino León
We use our own security implementation (implement shiro or spring will delay
our development), i just want a idea of how to implement this whit GWT only,
no external fw, a simple way.

I was thinking in Timer and check every some time if the USER - SESSION ID
are correct
but isn't the best way... imagine 1,000 users requesting the server every X
time

2011/8/17 Juan Pablo Gardella gardellajuanpa...@gmail.com

 See apache shiro or spring security. You must manage authentication and
 authorization in server side

 2011/8/17 Daniel Mauricio Patino León ceo.lion@gmail.com

 Some one can give me a idea of how to manage this? i dont want let
 users log  in in my GWT app (pure GWT dom manipulation) in two places
 at the same time, including the same browser (different tabs)

 any help be apreciated

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


-- 
You received 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: java.lang.IllegalArgumentException: Unknown proxy type

2011-08-17 Thread Andigator
This happens for me when I am extending EntityProxy directly for
proxyA and proxyB and try to append requestA to requestB.  @ExtraTypes
won't fix it in my case.  Ideas?

On Aug 16, 3:44 pm, Y2i yur...@gmail.com wrote:
 filed an 
 issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=6699

-- 
You received 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: Best way to prevent dual login in gwt.

2011-08-17 Thread Jeff Chimene
On 08/17/2011 12:30 PM, Daniel Mauricio Patino León wrote:
 We use our own security implementation (implement shiro or spring will
 delay our development), i just want a idea of how to implement this whit
 GWT only, no external fw, a simple way.
 
 I was thinking in Timer and check every some time if the USER - SESSION
 ID are correct
 but isn't the best way... imagine 1,000 users requesting the server
 every X time

The answer, as supplied earlier, is to manage it on the server. You
don't have to use a framework, but you do have to manage the multiple
logins on the server.

-- 
You received 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: Best way to prevent dual login in gwt.

2011-08-17 Thread Juan Pablo Gardella
You must check every request with a filter, and in the case the request is
not valid, show the log. In meanwhile in client side don't check anithing

2011/8/17 Daniel Mauricio Patino León ceo.lion@gmail.com

 We use our own security implementation (implement shiro or spring will
 delay our development), i just want a idea of how to implement this whit GWT
 only, no external fw, a simple way.

 I was thinking in Timer and check every some time if the USER - SESSION ID
 are correct
 but isn't the best way... imagine 1,000 users requesting the server every X
 time

 2011/8/17 Juan Pablo Gardella gardellajuanpa...@gmail.com

 See apache shiro or spring security. You must manage authentication and
 authorization in server side

 2011/8/17 Daniel Mauricio Patino León ceo.lion@gmail.com

 Some one can give me a idea of how to manage this? i dont want let
 users log  in in my GWT app (pure GWT dom manipulation) in two places
 at the same time, including the same browser (different tabs)

 any help be apreciated

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


  --
 You received 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: Best way to prevent dual login in gwt.

2011-08-17 Thread Daniel Mauricio Patino León
I think Juan Pablo Gardella just give me a idead, I will check every Action
of the user instead. i mean when the user open a new module or do some CRUD
operation and yes the server side
with help of the user table (db),  and some kind of Callback wrapper.

2011/8/17 Juan Pablo Gardella gardellajuanpa...@gmail.com

 You must check every request with a filter, and in the case the request is
 not valid, show the log. In meanwhile in client side don't check anithing

 2011/8/17 Daniel Mauricio Patino León ceo.lion@gmail.com

 We use our own security implementation (implement shiro or spring will
 delay our development), i just want a idea of how to implement this whit GWT
 only, no external fw, a simple way.

 I was thinking in Timer and check every some time if the USER - SESSION ID
 are correct
 but isn't the best way... imagine 1,000 users requesting the server every
 X time

 2011/8/17 Juan Pablo Gardella gardellajuanpa...@gmail.com

 See apache shiro or spring security. You must manage authentication and
 authorization in server side

 2011/8/17 Daniel Mauricio Patino León ceo.lion@gmail.com

 Some one can give me a idea of how to manage this? i dont want let
 users log  in in my GWT app (pure GWT dom manipulation) in two places
 at the same time, including the same browser (different tabs)

 any help be apreciated

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


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


-- 
You received 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 will there be official GWT binding for Google Maps Javascript API v3?

2011-08-17 Thread zhong
Would somebody know when there will be official GWT binding for Google
Maps Javascript API v3?

Thanks,
Zhong

-- 
You received 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 can I create a widget add it to a CellTable and perform some action when it's clicked?

2011-08-17 Thread nacho
I need to put some kind of Button in a CellTable column.

I created a class that extends AbstractCell:

public class AnchorCell extends AbstractCellAnchor {

@Override
public void onBrowserEvent(com.google.gwt.cell.client.Cell.Context 
context,
Element parent, Anchor value, NativeEvent event,
ValueUpdaterAnchor valueUpdater) {

Window.alert(hello);

}

@Override
public void render(com.google.gwt.cell.client.Cell.Context context, 
Anchor h, SafeHtmlBuilder sb) {
sb.append(SafeHtmlUtils.fromTrustedString(h.toString()));
}

}

And then, when I am working with my CellTable, I create a column in this 
way:

ColumnCompanyModel, Anchor actionsColumn = new ColumnCompanyModel, 
Anchor(new AnchorCell()) {

@Override
public Anchor getValue(CompanyModel company) {
Anchor h = new ActionsButton(company.getCompanyId(), 
Acciones  + company.getCompanyId());
return h;
}

};

But I can't get the browser events.. How can I perform some action when my 
widget is clicked?

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



Re: How can I create a widget add it to a CellTable and perform some action when it's clicked?

2011-08-17 Thread Chris
Are you sure you don't want to use a ButtonCell? Seems to be way more
convenient ;)

On 17 Aug., 22:29, nacho vela.igna...@gmail.com wrote:
 I need to put some kind of Button in a CellTable column.

 I created a class that extends AbstractCell:

 public class AnchorCell extends AbstractCellAnchor {

     @Override
     public void onBrowserEvent(com.google.gwt.cell.client.Cell.Context
 context,
             Element parent, Anchor value, NativeEvent event,
             ValueUpdaterAnchor valueUpdater) {

         Window.alert(hello);

     }

     @Override
     public void render(com.google.gwt.cell.client.Cell.Context context,
 Anchor h, SafeHtmlBuilder sb) {
         sb.append(SafeHtmlUtils.fromTrustedString(h.toString()));
     }

 }

 And then, when I am working with my CellTable, I create a column in this
 way:

 ColumnCompanyModel, Anchor actionsColumn = new ColumnCompanyModel,
 Anchor(new AnchorCell()) {

             @Override
             public Anchor getValue(CompanyModel company) {
                 Anchor h = new ActionsButton(company.getCompanyId(),
 Acciones  + company.getCompanyId());
                 return h;
             }

         };

 But I can't get the browser events.. How can I perform some action when my
 widget is clicked?

-- 
You received 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: java.lang.IllegalArgumentException: Unknown proxy type

2011-08-17 Thread Y2i
Have you tried to use @ExtraTypes on an interface that extends 
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/-/2qFWHzw8pTsJ.
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.



Moving a JavaScript-created object using the DOM

2011-08-17 Thread Sander Smith
I'm trying to embed a Twitter widget into my application using the
JavaScript code that Twitter defines for this situation, and am not
having much success. The only way I can get things to work is to put
this JavaScript code outside of the application in the HTML file.
There, it works great but is unfortunately out of place since I'd like
it to live inside of one of my panels.

Things currently look like this:

body
  div class=twitterWidget id=myTwitterWidget
 .. bunch of stuff here
  iframe src= . [this is my application]


What I'd like to do is to move the div into a panel using code. I
understand that things like this can be done with the DOM, but I can't
understand how. Does anyone have a good example?

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



Unknown argument: -draftCompile // GWT 2.3

2011-08-17 Thread Raghunath
I'm trying to compile my source in draft compilation flag. But I'm
getting followin error while running in gwt in eclipse.


Unknown argument: -draftCompile
Google Web Toolkit 2.3.0
DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist-
string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort
port-number | auto] [-server servletContainerLauncher[:args]] [-
startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir]
module[s]

where
  -noserverPrevents the embedded web server from running
  -portSpecifies the TCP port for the embedded web server
(defaults to )
  -whitelist   Allows the user to browse URLs that match the
specified regexes (comma or space separated)
  -blacklist   Prevents the user browsing URLs that match the
specified regexes (comma or space separated)
  -logdir  Logs to a file in the given directory, as well as
graphically
  -logLevelThe level of logging detail: ERROR, WARN, INFO,
TRACE, DEBUG, SPAM, or ALL
  -gen Debugging: causes normally-transient generated
types to be saved in the specified directory
  -bindAddress Specifies the bind address for the code server and
web server (defaults to 127.0.0.1)
  -codeServerPort  Specifies the TCP port for the code server
(defaults to 9997)
  -server  Specify a different embedded web server to run
(must implement ServletContainerLauncher)
  -startupUrl  Automatically launches the specified URL
  -war The directory into which deployable output files
will be written (defaults to 'war')
  -deploy  The directory into which deployable but not
servable output files will be written (defaults to 'WEB-INF/deploy'
under the -war directory/jar, and may be the same as the -extra
directory/jar)
  -extra   The directory into which extra files, not intended
for deployment, will be written
  -workDir The compiler's working directory for internal use
(must be writeable; defaults to a system temp dir)
and
  module[s]Specifies the name(s) of the module(s) to host

-- 
You received 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: Unknown argument: -draftCompile // GWT 2.3

2011-08-17 Thread Magno Machado
AFAIK, this is an argument for the compiler (not for devmode), isn't it?

On Wed, Aug 17, 2011 at 7:27 PM, Raghunath visuma...@gmail.com wrote:

 I'm trying to compile my source in draft compilation flag. But I'm
 getting followin error while running in gwt in eclipse.


 Unknown argument: -draftCompile
 Google Web Toolkit 2.3.0
 DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist-
 string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
 level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort
 port-number | auto] [-server servletContainerLauncher[:args]] [-
 startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir]
 module[s]

 where
  -noserverPrevents the embedded web server from running
  -portSpecifies the TCP port for the embedded web server
 (defaults to )
  -whitelist   Allows the user to browse URLs that match the
 specified regexes (comma or space separated)
  -blacklist   Prevents the user browsing URLs that match the
 specified regexes (comma or space separated)
  -logdir  Logs to a file in the given directory, as well as
 graphically
  -logLevelThe level of logging detail: ERROR, WARN, INFO,
 TRACE, DEBUG, SPAM, or ALL
  -gen Debugging: causes normally-transient generated
 types to be saved in the specified directory
  -bindAddress Specifies the bind address for the code server and
 web server (defaults to 127.0.0.1)
  -codeServerPort  Specifies the TCP port for the code server
 (defaults to 9997)
  -server  Specify a different embedded web server to run
 (must implement ServletContainerLauncher)
  -startupUrl  Automatically launches the specified URL
  -war The directory into which deployable output files
 will be written (defaults to 'war')
  -deploy  The directory into which deployable but not
 servable output files will be written (defaults to 'WEB-INF/deploy'
 under the -war directory/jar, and may be the same as the -extra
 directory/jar)
  -extra   The directory into which extra files, not intended
 for deployment, will be written
  -workDir The compiler's working directory for internal use
 (must be writeable; defaults to a system temp dir)
 and
  module[s]Specifies the name(s) of the module(s) to host

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




-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

-- 
You received 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: Unknown argument: -draftCompile // GWT 2.3

2011-08-17 Thread raghu
Yes , Thanks for reply.

I just got the difference. I just started reading the docs.




On Wed, Aug 17, 2011 at 15:30, Magno Machado magn...@gmail.com wrote:

 AFAIK, this is an argument for the compiler (not for devmode), isn't it?

 On Wed, Aug 17, 2011 at 7:27 PM, Raghunath visuma...@gmail.com wrote:

 I'm trying to compile my source in draft compilation flag. But I'm
 getting followin error while running in gwt in eclipse.


 Unknown argument: -draftCompile
 Google Web Toolkit 2.3.0
 DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist-
 string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
 level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort
 port-number | auto] [-server servletContainerLauncher[:args]] [-
 startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir]
 module[s]

 where
  -noserverPrevents the embedded web server from running
  -portSpecifies the TCP port for the embedded web server
 (defaults to )
  -whitelist   Allows the user to browse URLs that match the
 specified regexes (comma or space separated)
  -blacklist   Prevents the user browsing URLs that match the
 specified regexes (comma or space separated)
  -logdir  Logs to a file in the given directory, as well as
 graphically
  -logLevelThe level of logging detail: ERROR, WARN, INFO,
 TRACE, DEBUG, SPAM, or ALL
  -gen Debugging: causes normally-transient generated
 types to be saved in the specified directory
  -bindAddress Specifies the bind address for the code server and
 web server (defaults to 127.0.0.1)
  -codeServerPort  Specifies the TCP port for the code server
 (defaults to 9997)
  -server  Specify a different embedded web server to run
 (must implement ServletContainerLauncher)
  -startupUrl  Automatically launches the specified URL
  -war The directory into which deployable output files
 will be written (defaults to 'war')
  -deploy  The directory into which deployable but not
 servable output files will be written (defaults to 'WEB-INF/deploy'
 under the -war directory/jar, and may be the same as the -extra
 directory/jar)
  -extra   The directory into which extra files, not intended
 for deployment, will be written
  -workDir The compiler's working directory for internal use
 (must be writeable; defaults to a system temp dir)
 and
  module[s]Specifies the name(s) of the module(s) to host

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

 --
 You received 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 can I create a widget add it to a CellTable and perform some action when it's clicked?

2011-08-17 Thread nacho
Looks i was trying to reinvent the wheel :D

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/-/2WphgIMPNWIJ.
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.



RPC Number after full class name

2011-08-17 Thread Hilario Perez Corona
Hi,

I'm creating a GWT-RPC server on Go, and i'm having a problem...

When sending or returning RPC data, all class names have a number, for 
example: my.project.model.Data/*12345678*

It appears that the number is some kind of versioning. Anybody knows how to 
generate that number so my JSON result would create it correctly?


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



gwt 2.3 + spring 2 + maven 2

2011-08-17 Thread Mike Chai
I'm new developing web applications with Java, so maybe this is
implicitly known in the community but upon trying to search for
integration for these 3 technologies I couldn't find a very
straightforward answer. Some information is dated back to 2008ish
where some people created glue to integrate gwt and spring, but I
found some news on spring saying something about google integration
into spring.

Some of the tools also seem to be depreciated and redirect the user to
codehaus' maven plugin, but on first look I can't find a download on
it and it just links to google's eclipse plugin.

tl; dr: what's the current standard for integrating these 3
technologies?

-- 
You received 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 2.3 + spring 2 + maven 2

2011-08-17 Thread Y2i
There is some documentation on GWT site on GWT, SpringSource and Roo 
integration
http://code.google.com/webtoolkit/doc/latest/tutorial/roo-sts.html

-- 
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/-/sCDanQYeZ-cJ.
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.



GIN and ClientBundle (Singleton or not-to-Singleton)?

2011-08-17 Thread Daniel Guggi
Hi,

I have some questions regarding ClientBundle and GIN.

Suppose the following blank bundle:

*public interface MyClientBundle extends ClientBundle {
}
*
I want GIN to create the instance(es) of the MyClientBundle for me. The
GIN-docs say (
http://code.google.com/p/google-gin/wiki/GinTutorial#Deferred_Binding):

*Note: Gin will not bind the instances created through GWT.create in
singleton scope. That should not cause unnecessary overhead though, since
deferred binding generators usually implement singleton patterns in their
generated code. *

*Usage 1) *
Don't specify MyClientBundle class in GinModule - this means that there is
no bind(MyClientBundle.class) somewhere.
When injecting MyClientBundle into some beans, I see that there is always a
new (not-singleton) instance of MyClientBundle - as the gin-docs say

*Usage 2)*
Specify MyClientBundle class in GinModule as follows:

*bind(MyClientBundle.class).in(Singleton.class);*

When injecting MyClientBundle into some beans, I see that there is always
the same (singleton) instance of MyClientBundle - are the docs incorrect?
or to i miss something here?

*Usage 3)*
Specifiy MyClientBundle class in a Gin Module as follows:

*bind(MyClientBundle.class);

*This leads to the following error:

*com.google.inject.CreationException: Guice creation errors*:
*1) No implementation for gwtapp.client.navigation.MyClientBundle was bound.
  at
gwtapp.client.navigation.NavigationModule.configure(NavigationModule.java:19)
1 error
at
com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:416)
*


- imo the gin-docs are not correct here, because it is possible to create a
ClientBundle with singleton-scope right? or do i miss something?
- what approach (usage1 vs usage2) would you recommend
- why does usage3 lead to an exception?

i use gin1.5

thank you,
daniel

-- 
You received 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 2.3 + spring 2 + maven 2

2011-08-17 Thread Daniel Guggi
@spring you may have a look here (requestfactory + spring3 integration):
http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-spring-3-0-x-integration/

here an example pom (i use maven 3)

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;

!-- POM file generated with GWT webAppCreator --
modelVersion4.0.0/modelVersion
groupIdgwtapp/groupId
artifactIdGwtApp/artifactId
packagingwar/packaging
version1.0-SNAPSHOT/version
namegwtapp.GwtApp/name

properties
!-- Convenience property to set the GWT version --
gwtVersion2.3.0/gwtVersion
!-- GWT needs at least java 1.5 --
maven.compiler.source1.6/maven.compiler.source
maven.compiler.target1.6/maven.compiler.target
/properties

dependencies
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-servlet/artifactId
version${gwtVersion}/version
scoperuntime/scope
/dependency
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-user/artifactId
version${gwtVersion}/version
scopeprovided/scope
/dependency
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-dev/artifactId
version${gwtVersion}/version
scopetest/scope
/dependency
dependency
groupIdcom.google.gwt.inject/groupId
artifactIdgin/artifactId
version1.5.0/version
/dependency
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.8.1/version
scopetest/scope
/dependency
dependency
groupIdjavax.validation/groupId
artifactIdvalidation-api/artifactId
version1.0.0.GA/version
scopeprovided/scope
/dependency
dependency
groupIdjavax.validation/groupId
artifactIdvalidation-api/artifactId
version1.0.0.GA/version
classifiersources/classifier
scopeprovided/scope
/dependency
/dependencies

build
!-- Generate compiled stuff in the folder used for developing mode
--
outputDirectorytarget/www/WEB-INF/classes/outputDirectory

plugins

!-- GWT Maven Plugin --
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
version2.2.0/version
dependencies
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-user/artifactId
version${gwtVersion}/version
/dependency
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-dev/artifactId
version${gwtVersion}/version
/dependency
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-servlet/artifactId
version${gwtVersion}/version
/dependency
/dependencies
!-- JS is only needed in the package phase, this speeds up
testing --
executions
execution
phaseprepare-package/phase
goals
goalcompile/goal
/goals
/execution
/executions
!-- Plugin configuration. There are many available options,
see gwt-maven-plugin
documentation at codehaus.org --
configuration
!-- URL that should be automatically opened in the GWT
shell (gwt:run). --
runTargetGwtApp.html/runTarget
!-- Location of the develop-mode web application
structure (gwt:run). --
hostedWebapptarget/www/hostedWebapp
!-- Ask GWT to create the Story of Your Compile (SOYC)
(gwt:compile) --
compileReporttrue/compileReport
/configuration
/plugin

!-- Add source folders to test classpath in order to run
gwt-tests as
normal junit-tests --
plugin
artifactIdmaven-surefire-plugin/artifactId
version2.5/version
configuration
additionalClasspathElements

additionalClasspathElement${project.build.sourceDirectory}/additionalClasspathElement

additionalClasspathElement${project.build.testSourceDirectory}/additionalClasspathElement

Editor returns null values for empty strings after flush?

2011-08-17 Thread P.G.Taboada
hi,

Not sure what I am doing wrong.

I did build a form with uibinder and I am populating a few TextBoxes
with an editor:

mydriver.initialize( this );
mydriver.edit( somebean );


... User edits data ...


changedBean = myeditor.flush();


When I look at the changedBean, all empty string properties became
null. Not what I or the database did expect.

I am using gwt build from trunk.

Brgds,

Papick

-- 
You received 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: Editor returns null values for empty strings after flush?

2011-08-17 Thread P.G.Taboada
From the ValueBoxBaseT source:


  /**
   * Return the parsed value, or null if the field is empty.
   *
   * @throws ParseException if the value cannot be parsed
   */
  public T getValueOrThrow() throws ParseException {
String text = getText();

T parseResult = parser.parse(text);

if (.equals(text)) {
  return null;
}

return parseResult;
  }


Bug or feature? I feel very uncomfortable about having my empty
strings converted to null.

Comments?




On 18 Aug., 00:27, P.G.Taboada pgtabo...@googlemail.com wrote:
 hi,

 Not sure what I am doing wrong.

 I did build a form with uibinder and I am populating a few TextBoxes
 with an editor:

 mydriver.initialize( this );
 mydriver.edit( somebean );

 ... User edits data ...

 changedBean = myeditor.flush();

 When I look at the changedBean, all empty string properties became
 null. Not what I or the database did expect.

 I am using gwt build from trunk.

 Brgds,

 Papick

-- 
You received 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: Editor returns null values for empty strings after flush?

2011-08-17 Thread P.G.Taboada
Well, the TextBoxBase, on the other hand, transforms any null value
into a empty string.

Not sure if this is good either, but as a matter o fact I do not know
who is turning my empty strings to null.

Flush? It should not.

Or?



On Aug 18, 12:45 am, P.G.Taboada pgtabo...@googlemail.com wrote:
 From the ValueBoxBaseT source:

   /**
    * Return the parsed value, or null if the field is empty.
    *
    * @throws ParseException if the value cannot be parsed
    */
   public T getValueOrThrow() throws ParseException {
     String text = getText();

     T parseResult = parser.parse(text);

     if (.equals(text)) {
       return null;
     }

     return parseResult;
   }

 Bug or feature? I feel very uncomfortable about having my empty
 strings converted to null.

 Comments?

 On 18 Aug., 00:27, P.G.Taboada pgtabo...@googlemail.com wrote:







  hi,

  Not sure what I am doing wrong.

  I did build a form with uibinder and I am populating a few TextBoxes
  with an editor:

  mydriver.initialize( this );
  mydriver.edit( somebean );

  ... User edits data ...

  changedBean = myeditor.flush();

  When I look at the changedBean, all empty string properties became
  null. Not what I or the database did expect.

  I am using gwt build from trunk.

  Brgds,

  Papick

-- 
You received 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: Using AbstractImagePrototype

2011-08-17 Thread bryanb
Found a solution on StackOverflow:
http://stackoverflow.com/questions/5188799/gwt-add-filtering-to-celltable

Used this snippet of code:

AbstractImagePrototype proto =
AbstractImagePrototype.create(resource);
return proto.getHTML().replace(style=',
style='position:absolute;right:0px;top:0px;);

and replaced the style bit with vertical-align I required.

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



Strange eclipse problem

2011-08-17 Thread Russ Abbott
I'm trying to run the MVP Contacts
examplehttp://code.google.com/webtoolkit/articles/mvp-architecture.html.
(But the same problem occurred in a completely different context.)

I created a Contacts project. But I declared the package as *
com.google.gwt.samples.contacts.*
*
*
I then copied the src and war files onto that project. (Other ways of
creating the project and then using the Tutorial-Contacts.zip file didn't
work.) When I ran it I got this error message in the Console window.

Loading modules
   com.google.gwt.sample*s*.contacts.Contacts
  [ERROR] Unable to find
'com/google/gwt/samples/contacts/Contacts.gwt.xml' on your classpath; could
be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method

My mistake was that I wrote *samples *instead of *sample *in the package
name.

So I deleted the project and the code and tried again.  Even though I typed
the name correctly this time, eclipse still tried to load the wrong file. I
even restarted eclipse--and still the same thing happened. Somehow eclipse
seems to have become obsessed with my original wrong spelling of *samples*.
How can I get it to forget that?

(As I said, the same thing happened when I did something similar in a
different project.)

Thanks.

-- Russ

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



Using a CellTable with individual Cell selection

2011-08-17 Thread Sander Smith
I need to create a table of records where each row in the table is
selectable. I'm using a CellTable which works very nice, and allows me
to select and act on rows.

However, there's a cosmetic side-effect that I don't like. When
anything in the table is clicked on, it seems like the cell that was
clicked on is being selected. It does this by highlighting the text in
the cell and putting a frame around that cell.

How do I retain the functionality of this widget, but avoid this
cosmetic behavior?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Using a CellTable with individual Cell selection

2011-08-17 Thread Jeff Larsen
you can always override the CSS and get change 

.dataGridSelectedRowCell {
  border: selectionBorderWidth solid #628cd5;
}

to 
.dataGridSelectedRowCell {

}

-- 
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/-/belx2MfWjIcJ.
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: Strange eclipse problem

2011-08-17 Thread Jeff Larsen
Try deleting your run target and have the GPE rebuild them for you. 

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



did you forget to inherit a required module?.

2011-08-17 Thread Aurita Moya
When I called a service in a panel method

  public void mostrarSorteo(){
   Servicios.getInstance().getAppService().consultar(new
AsyncCallbackObjetoTo() {
   ...
   });
  }

  Generates the following errors:
  ERROR: Errors in 'file:/C:/Prototipo/KioskoVista/trunk/src/main/
java/ve/com/kiosko/vista/client/componente/AppTimer.java'.
   ERROR: Line 50: No source code is available for type
ve.com.kiosko.vista.server.servicios.AppService; did you forget to
inherit a required module?.
   ERROR: Unable to load module entry point class
ve.com.kiosko.vista.client.entrypoint.AppEntryPoint (see associated
exception for details). java.lang.NullPointerException: null

AppService.java In class methods are loading a
list and randomly select one member of the
list


  public ListObjetoTo cargarListado()  {
   ObjetoTo persona = new ObjetoTo();
   ListObjetoTo personas = new ArrayListObjetoTo();
   try{

  persona.setId(100);
  persona.setNombre(Claudia Sanchez);
  personas.add(0,persona);

  persona.setId(200);
  persona.setNombre(Pedro Sanchez);
  personas.add(1,persona);

  persona.setId(300);
  persona.setNombre(Luis Sanchez);
  personas.add(2,persona);

  persona.setId(400);
  persona.setNombre(Maria Sanchez);
  personas.add(3,persona);

  persona.setId(500);
  persona.setNombre(Fernanda Sanchez);
  personas.add(4,persona);

  persona.setId(600);
  persona.setNombre(Juan Sanchez);
  personas.add(5,persona);

  /*for (int i=0; ipersonas.size(); i++){
 System.out.println(personas.get(i));
  } */

   } catch (Throwable e) {
   e.printStackTrace();
   if (logger.isEnabledFor(Level.ERROR))
logger.error(e.getMessage(), e);
   }
   return personas;
   }


  public ObjetoTo consultar() {

  ListObjetoTo listado = null;
  int gnd = 0;
  ObjetoTo obj = null;

  try {
  listado = new ArrayListObjetoTo();
  listado = cargarListado();

  Random rdn = new Random(System.currentTimeMillis());
  if (listado!= null  listado.size()  0){
   gnd = rdn.nextInt(listado.size());
   obj= listado.get(gnd);
  }
  } catch (Throwable e) {
  if (logger.isEnabledFor(Level.ERROR))
logger.error(e.getMessage(), e);
  }
  return  obj;
  }

 En el AppTimer.java se encuentra el llamado del metodo
consultar para
mostrar en un Label listaParticipantes del Panel el Id y Nombre del
Participante seleccionado aleatoriamente

   public void run() {
   Servicios.getInstance().getAppService().consultar(new
AsyncCallbackObjetoTo() {
   public void onFailure(Throwable throwable) {
   Window.alert(Error Recuperando la Información);
   if (throwable instanceof InvocationException) {
   Window.alert(Mensajes.mensajes.sinConexion());
   } else if (throwable instanceof
IncompatibleRemoteServiceException) {
   Window.Location.reload();
   }
   }

   public void onSuccess(ObjetoTo objetoTo) {
   AppService appService = new AppService();
   objetoTo = appService.consultar();

   if (objetoTo != null){

AppPanel.listaParticipantes.setText(String.valueOf(objetoTo.getId()) +
objetoTo.getNombre()); }
   }
   });
   }

   I do not know if the problem is the call of the
methods, any parameters are missing or am I wrong methods
instantiating
because when I'm debbuger stops the GWT plugin, stops
the browser, generating an exception falls
java.lang.NullPointerException and
ve.com.kiosko.vista.client.panel.AppPanel_PanelUiBinderImpl @ 149cc16
(null handle)

-- 
You received 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: Strange eclipse problem

2011-08-17 Thread Russ Abbott
Thanks. I guess I should have thought of that. It's the only thing that
wasn't deleted.  (I assume you mean the run configuration.)

*-- Russ *



On Wed, Aug 17, 2011 at 7:20 PM, Jeff Larsen larse...@gmail.com wrote:

 Try deleting your run target and have the GPE rebuild them for you.

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



Aw: Re: [gwt-contrib] Aw: Regression: instanceof compiler issue

2011-08-17 Thread dflorey
Hi,
unfortunately I did not manage to reproduce the issue in a clean project.
But I'd like to show the issue to someone with my existing projects.
I've been able to find a workaround by adding the module classes to a fake 
rpc service.

I could setup a TeamViewer session to show the issue on my machine.

Daniel

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Provides an integration test for IsRenderable (issue1527804)

2011-08-17 Thread Hermes Freitas
WidgetInterpreter and WidgetPlaceholderInterpreter shouldn't output
LazyDomElement. Rafa, do you remember why? I don't think this aggregates any
performance gain for us,  am I missing something?

And I vote for #1

On Tue, Aug 16, 2011 at 10:10 PM, Rafael Castro rdcas...@google.com wrote:

 +hermes

 Good point, this is really tricky. The problem here is that we don't
 actually have the DOM element until the widget is attached. I see 2 options:
 1-) We force the UiField to be a LazyDomElement, so this is explicit.
 2-) We use PotentialElement with a resolver that throws an Exception (i.e.,
 it's only really resolved when it's attached).

 what do you think?

 ps.: really nice tests, thanks for putting them together!

 On Tue, Aug 16, 2011 at 5:13 PM, rj...@google.com wrote:

 On 2011/08/17 00:12:24, rjrjr wrote:

 Ready for review.

 Rafa, this turned up one issue that concerns me: most @UiField fields
 are not filled in until the widget is attached to the dom, but we're not
 consistent about it. See the big comment in testDeep.


 http://gwt-code-reviews.**appspot.com/1527804/http://gwt-code-reviews.appspot.com/1527804/





-- 
--Hermes Freitas

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Adding a new CellTableHeaderBuilder API, which allows custom headers and footers in CellTable. C... (issue1499808)

2011-08-17 Thread jlabanca

http://gwt-code-reviews.appspot.com/1499808/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Adding a new CellTableHeaderBuilder API, which allows custom headers and footers in CellTable. C... (issue1499808)

2011-08-17 Thread jlabanca

A patch is coming that modifies the TableBuilder API to make it more
flexible.  TableBuilder.Utility is going away completely, and the event
handling implementation is moved from AbstractCellTable into
AbstractTableBuilder.  This will allow users to implement a simple grid
based TableBuilder with faster rendering and event handling logic.

The new API is also much more builder-like, and simpler to boot.Once
those changes are in, I'll revisit HeaderCreator and apply similar
changes, hopefully eliminating the Helper class.  Either way, there will
be follow-up changes that
unify the terminology used in TableBuilder/HeaderCreator.


http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java
File
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java
(right):

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode79
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:79:
* Example file.
On 2011/08/16 02:16:25, skybrian wrote:

Defines a custom table that displays a contact in each row.
This is an example that shows how to completely customize the

appearance of the

headers, data rows, and footers in a CellTable.


Done.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode143
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:143:
* A custom header builder.
On 2011/08/16 02:16:25, skybrian wrote:

Renders custom headers that ...


Done.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode164
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:164:
public void buildHeader(HelperContactInfo utility) {
On 2011/08/16 02:16:25, skybrian wrote:

s/utility/helper/


Done.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode209
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:209:
* Build a single header.
On 2011/08/16 02:16:25, skybrian wrote:

Renders the header of one column, with the given options.


Done.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode211
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:211:
* @param utility the utility used to builder the header
On 2011/08/16 02:16:25, skybrian wrote:

used to build


Done.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode213
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:213:
* @param header the header to buil
On 2011/08/16 02:16:25, skybrian wrote:

the Header to render


Done.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode220
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:220:
private void buildHeader(HelperContactInfo utility, TableRowBuilder
tr, Header? header,
On 2011/08/16 02:16:25, skybrian wrote:

rename utility - helper
rename tr - out.
Maybe reorder first arguments to match renderHeader()



maybe rename to renderOneHeader()?


Done.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode295
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:295:
* A custom version of {@link CellTableBuilder}.
On 2011/08/16 02:16:25, skybrian wrote:

Renders the data rows that display each contact in the table.


Done.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode489
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:489:
* A map containing the IDs of {@link ContactInfo} who's friends list is
On 2011/08/16 02:16:25, skybrian wrote:

Contains the contact id for each row in the table where the friends

list is

currently expanded.


Done.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode636
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:636:
* Initialize the 

[gwt-contrib] Re: Pretty massive refactoring of FieldManager and HtmlTemplates to make (issue1522803)

2011-08-17 Thread rchandia

LGTM. Just nits.


http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java
File
user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java
(right):

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java#newcode96
user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java:96:
public int computedCount() {
getComputedCount()

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/rebind/FieldManager.java
File user/src/com/google/gwt/uibinder/rebind/FieldManager.java (right):

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/rebind/FieldManager.java#newcode124
user/src/com/google/gwt/uibinder/rebind/FieldManager.java:124: // could
this conversion can be moved to FieldWriter?
TODO?

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
File user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
(right):

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1738
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1738: //
TODO(rchandia) Find a better way to get the root field name
Can we now use FieldManager#stripFieldGetter()?

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/test/com/google/gwt/uibinder/LazyWidgetBuilderSuite.java
File user/test/com/google/gwt/uibinder/LazyWidgetBuilderSuite.java
(right):

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/test/com/google/gwt/uibinder/LazyWidgetBuilderSuite.java#newcode35
user/test/com/google/gwt/uibinder/LazyWidgetBuilderSuite.java:35:
suite.addTestSuite(UiRendererTest.class);
What do you think about copying some UiBinderSuite tests here?

http://gwt-code-reviews.appspot.com/1522803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Adding a new CellTableHeaderBuilder API, which allows custom headers and footers in CellTable. C... (issue1499808)

2011-08-17 Thread Ray Ryan
LGTM

On Wed, Aug 17, 2011 at 7:32 AM, jlaba...@google.com wrote:

 A patch is coming that modifies the TableBuilder API to make it more
 flexible.  TableBuilder.Utility is going away completely, and the event
 handling implementation is moved from AbstractCellTable into
 AbstractTableBuilder.  This will allow users to implement a simple grid
 based TableBuilder with faster rendering and event handling logic.

 The new API is also much more builder-like, and simpler to boot.Once
 those changes are in, I'll revisit HeaderCreator and apply similar
 changes, hopefully eliminating the Helper class.  Either way, there will
 be follow-up changes that
 unify the terminology used in TableBuilder/HeaderCreator.



 http://gwt-code-reviews.**appspot.com/1499808/diff/**
 14004/samples/showcase/src/**com/google/gwt/sample/**
 showcase/client/content/cell/**CwCustomDataGrid.javahttp://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java
 File
 samples/showcase/src/com/**google/gwt/sample/showcase/**
 client/content/cell/**CwCustomDataGrid.java
 (right):

 http://gwt-code-reviews.**appspot.com/1499808/diff/**
 14004/samples/showcase/src/**com/google/gwt/sample/**
 showcase/client/content/cell/**CwCustomDataGrid.java#**newcode79http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode79
 samples/showcase/src/com/**google/gwt/sample/showcase/**
 client/content/cell/**CwCustomDataGrid.java:79:
 * Example file.
 On 2011/08/16 02:16:25, skybrian wrote:

 Defines a custom table that displays a contact in each row.
 This is an example that shows how to completely customize the

 appearance of the

 headers, data rows, and footers in a CellTable.


 Done.


 http://gwt-code-reviews.**appspot.com/1499808/diff/**
 14004/samples/showcase/src/**com/google/gwt/sample/**
 showcase/client/content/cell/**CwCustomDataGrid.java#**newcode143http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode143
 samples/showcase/src/com/**google/gwt/sample/showcase/**
 client/content/cell/**CwCustomDataGrid.java:143:
 * A custom header builder.
 On 2011/08/16 02:16:25, skybrian wrote:

 Renders custom headers that ...


 Done.


 http://gwt-code-reviews.**appspot.com/1499808/diff/**
 14004/samples/showcase/src/**com/google/gwt/sample/**
 showcase/client/content/cell/**CwCustomDataGrid.java#**newcode164http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode164
 samples/showcase/src/com/**google/gwt/sample/showcase/**
 client/content/cell/**CwCustomDataGrid.java:164:
 public void buildHeader(Helper**ContactInfo utility) {
 On 2011/08/16 02:16:25, skybrian wrote:

 s/utility/helper/


 Done.


 http://gwt-code-reviews.**appspot.com/1499808/diff/**
 14004/samples/showcase/src/**com/google/gwt/sample/**
 showcase/client/content/cell/**CwCustomDataGrid.java#**newcode209http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode209
 samples/showcase/src/com/**google/gwt/sample/showcase/**
 client/content/cell/**CwCustomDataGrid.java:209:
 * Build a single header.
 On 2011/08/16 02:16:25, skybrian wrote:

 Renders the header of one column, with the given options.


 Done.


 http://gwt-code-reviews.**appspot.com/1499808/diff/**
 14004/samples/showcase/src/**com/google/gwt/sample/**
 showcase/client/content/cell/**CwCustomDataGrid.java#**newcode211http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode211
 samples/showcase/src/com/**google/gwt/sample/showcase/**
 client/content/cell/**CwCustomDataGrid.java:211:
 * @param utility the utility used to builder the header
 On 2011/08/16 02:16:25, skybrian wrote:

 used to build


 Done.


 http://gwt-code-reviews.**appspot.com/1499808/diff/**
 14004/samples/showcase/src/**com/google/gwt/sample/**
 showcase/client/content/cell/**CwCustomDataGrid.java#**newcode213http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode213
 samples/showcase/src/com/**google/gwt/sample/showcase/**
 client/content/cell/**CwCustomDataGrid.java:213:
 * @param header the header to buil
 On 2011/08/16 02:16:25, skybrian wrote:

 the Header to render


 Done.


 http://gwt-code-reviews.**appspot.com/1499808/diff/**
 14004/samples/showcase/src/**com/google/gwt/sample/**
 

[gwt-contrib] Re: Provides an integration test for IsRenderable (issue1527804)

2011-08-17 Thread Ray Ryan
I like #1 too. I think we should try to narrow the visibility of
PotentialElement as much as we can.

So #1 means two things , right?

• Widgets are seated in their @UiFields immediately
• In an IsRenderable owner, Element and subclasses are only available via
LazyDomElement, and @UiField Element is a compile time error

I've tweaked the test a bit (will update soon), and I'm happy to report that
composites around non-IsRenderables work as expected, with element fields
filled immediately. Given that I don't think we need to delay the switch to
using lazy widget builder by default.


On Wed Aug 17 06:14:52 GMT-700 2011, Hermes Freitas wrote:

 WidgetInterpreter and WidgetPlaceholderInterpreter shouldn't output
 LazyDomElement. Rafa, do you remember why? I don't think this aggregates any
 performance gain for us,  am I missing something?

 And I vote for #1

 On Tue, Aug 16, 2011 at 10:10 PM, Rafael Castro 
 rdcas...@google.comhttp://www.google.com/url?sa=Dq=mailto%3Ardcastro%40google.com
  wrote:

 +hermes

 Good point, this is really tricky. The problem here is that we don't
 actually have the DOM element until the widget is attached. I see 2 options:
 1-) We force the UiField to be a LazyDomElement, so this is explicit.
 2-) We use PotentialElement with a resolver that throws an Exception (i.e.,
 it's only really resolved when it's attached).

 what do you think?

 ps.: really nice tests, thanks for putting them together!

 On Tue, Aug 16, 2011 at 5:13 PM, 
 rj...@google.comhttp://www.google.com/url?sa=Dq=mailto%3Arjrjr%40google.com
  wrote:

 On 2011/08/17 00:12:24, rjrjr wrote:

 Ready for review.

 Rafa, this turned up one issue that concerns me: most @UiField fields
 are not filled in until the widget is attached to the dom, but we're not
 consistent about it. See the big comment in testDeep.


 http://gwt-code-reviews.**appspot.com/1527804/http://www.google.com/url?sa=Dq=http%3A%2F%2Fgwt-code-reviews.appspot.com%2F1527804%2F





 --
 --Hermes Freitas


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] [google-web-toolkit] r10538 committed - Cherry picking r10489 into release/2.4 for public issue 1508802

2011-08-17 Thread codesite-noreply

Revision: 10538
Author:   mrruss...@google.com
Date: Wed Aug 17 06:37:04 2011
Log:  Cherry picking r10489 into release/2.4 for public issue 1508802

http://code.google.com/p/google-web-toolkit/source/detail?r=10538

Added:
 /releases/2.4/dev/core/src/com/google/gwt/util/tools/shared
 /releases/2.4/dev/core/src/com/google/gwt/util/tools/shared/Md5Utils.java
  
/releases/2.4/dev/core/src/com/google/gwt/util/tools/shared/StringUtils.java
  
/releases/2.4/dev/core/src/com/google/gwt/util/tools/shared/package-info.java

Modified:
  
/releases/2.4/dev/core/src/com/google/gwt/dev/ExternalPermutationWorkerFactory.java

 /releases/2.4/dev/core/src/com/google/gwt/dev/util/Util.java
 /releases/2.4/dev/core/src/com/google/gwt/util/tools/Utility.java
 /releases/2.4/servlet/build.xml
  
/releases/2.4/user/src/com/google/gwt/i18n/rebind/keygen/MD5KeyGenerator.java
  
/releases/2.4/user/src/com/google/gwt/i18n/server/keygen/MD5KeyGenerator.java
  
/releases/2.4/user/src/com/google/gwt/user/server/rpc/XsrfProtectedServiceServlet.java
  
/releases/2.4/user/src/com/google/gwt/user/server/rpc/XsrfTokenServiceServlet.java


===
--- /dev/null
+++  
/releases/2.4/dev/core/src/com/google/gwt/util/tools/shared/Md5Utils.java	 
Wed Aug 17 06:37:04 2011

@@ -0,0 +1,54 @@
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.util.tools.shared;
+
+import java.security.MessageDigest;
+import java.security.NoSuchAlgorithmException;
+
+/**
+ * Utility class to generate MD5 hashes using per-thread MD5
+ * {@link MessageDigest} instance.
+ */
+public class Md5Utils {
+
+  /**
+   * Per thread MD5 instance.
+   */
+  private static final ThreadLocalMessageDigest perThreadMd5  =
+new ThreadLocalMessageDigest() {
+  @Override
+  protected MessageDigest initialValue() {
+try {
+  return MessageDigest.getInstance(MD5);
+} catch (NoSuchAlgorithmException e) {
+  throw new RuntimeException(MD5 implementation not found, e);
+}
+  };
+  };
+
+  /**
+   * Generate MD5 digest.
+   *
+   * @param input input data to be hashed.
+   * @return MD5 digest.
+   */
+  public static byte[] getMd5Digest(byte[] input) {
+MessageDigest md5 = perThreadMd5.get();
+md5.reset();
+md5.update(input);
+return md5.digest();
+  }
+}
===
--- /dev/null
+++  
/releases/2.4/dev/core/src/com/google/gwt/util/tools/shared/StringUtils.java	 
Wed Aug 17 06:37:04 2011

@@ -0,0 +1,54 @@
+/*
+ * Copyright 2006 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.util.tools.shared;
+
+/**
+ * String utility methods.
+ */
+public class StringUtils {
+
+  public static char[] HEX_CHARS = new char[] {
+'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D',
+'E', 'F'};
+
+  /**
+   * A 4-digit hex result.
+   */
+  public static void hex4(char c, StringBuffer sb) {
+sb.append(HEX_CHARS[(c  0xF000)  12]);
+sb.append(HEX_CHARS[(c  0x0F00)  8]);
+sb.append(HEX_CHARS[(c  0x00F0)  4]);
+sb.append(HEX_CHARS[c  0x000F]);
+  }
+
+  /**
+   * Returns a string representation of the byte array as a series of
+   * hexadecimal characters.
+   *
+   * @param bytes byte array to convert
+   * @return a string representation of the byte array as a series of
+   * hexadecimal characters
+   */
+  public static String toHexString(byte[] bytes) {
+char[] hexString = new char[2 * bytes.length];
+int j = 0;
+for (int i = 0; i  bytes.length; i++) {
+  hexString[j++] = HEX_CHARS[(bytes[i]  0xF0)  4];
+  hexString[j++] = HEX_CHARS[bytes[i]  0x0F];
+}
+return new String(hexString);
+  }
+}
===
--- /dev/null
+++  
/releases/2.4/dev/core/src/com/google/gwt/util/tools/shared/package-info.java	 
Wed Aug 17 06:37:04 2011

@@ -0,0 

[gwt-contrib] Fixes issue where UiRenderer breaks when a field is referenced more than once (issue1525805)

2011-08-17 Thread rchandia

Reviewers: rjrjr,

Description:
Fixes issue where UiRenderer breaks when a field is referenced more than
once


Please review this at http://gwt-code-reviews.appspot.com/1525805/

Affected files:
  M user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java
  M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
  M user/test/com/google/gwt/uibinder/test/client/UiRendererTest.java
  M user/test/com/google/gwt/uibinder/test/client/UiRendererUi.java
  M user/test/com/google/gwt/uibinder/test/client/UiRendererUi.ui.xml


Index: user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java
===
--- user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java	(revision  
10533)
+++ user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java	(working  
copy)

@@ -374,7 +374,7 @@

 fieldWriter = fieldManager.registerField(
 FieldWriterType.IMPORTED, matchingResourceType.getErasedType(),  
resourceName);

-fieldWriter.setInitializer(this. + resourceName);
+fieldWriter.setInitializer(UiBinderWriter.RENDER_PARAM_HOLDER_PREFIX +  
resourceName);

   }

   private void createSingleImport(XMLElement elem, JClassType  
enclosingType,

Index: user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
===
--- user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java	(revision  
10533)
+++ user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java	(working  
copy)

@@ -66,6 +66,9 @@
  * Writer for UiBinder generated classes.
  */
 public class UiBinderWriter implements Statements {
+
+  static final String RENDER_PARAM_HOLDER_PREFIX  
= _renderer_param_holder_;

+
   private static final String PACKAGE_URI_SCHEME = urn:import:;

   // TODO(rjrjr) Another place that we need a general anonymous field
@@ -1749,7 +1752,8 @@
   private void writeRenderParameterDefinitions(IndentedWriter w,  
JParameter[] renderParameters) {

 for (int i = 0; i  renderParameters.length; i++) {
   JParameter parameter = renderParameters[i];
-  w.write(private %s %s;,  
parameter.getType().getQualifiedSourceName(), parameter.getName());
+  w.write(private %s %s%s;,  
parameter.getType().getQualifiedSourceName(),

+  RENDER_PARAM_HOLDER_PREFIX, parameter.getName());
   w.newline();
 }
   }
@@ -1757,7 +1761,7 @@
   private void writeRenderParameterInitializers(IndentedWriter w,  
JParameter[] renderParameters) {

 for (int i = 0; i  renderParameters.length; i++) {
   JParameter parameter = renderParameters[i];
-  w.write(this.%s = %s;, parameter.getName(), parameter.getName());
+  w.write(%s%s = %s;, RENDER_PARAM_HOLDER_PREFIX,  
parameter.getName(), parameter.getName());

   w.newline();
 }
   }
Index: user/test/com/google/gwt/uibinder/test/client/UiRendererTest.java
===
--- user/test/com/google/gwt/uibinder/test/client/UiRendererTest.java	 
(revision 10533)
+++ user/test/com/google/gwt/uibinder/test/client/UiRendererTest.java	 
(working copy)

@@ -30,6 +30,7 @@
 public class UiRendererTest extends GWTTestCase {

   private static final String RENDERED_VALUE = bar;
+  private static final String RENDERED_VALUE_TWICE = quux;

   private DivElement docDiv;
   private SafeHtml renderedHtml;
@@ -46,7 +47,7 @@
 super.gwtSetUp();
 UiRendererTestApp app = UiRendererTestApp.getInstance();
 safeHtmlUi = app.getSafeHtmlUi();
-renderedHtml = safeHtmlUi.render(RENDERED_VALUE);
+renderedHtml = safeHtmlUi.render(RENDERED_VALUE, RENDERED_VALUE_TWICE);
 renderer = safeHtmlUi.getRenderer();

 docDiv = Document.get().createDivElement();
@@ -66,7 +67,7 @@

 // Get nameSpan
 SpanElement nameSpan = renderer.getNameSpan(docDiv);
-assertSpanContainsRenderedValueText(nameSpan.getFirstChild());
+assertSpanContainsRenderedValueText(RENDERED_VALUE,  
nameSpan.getFirstChild());


 // Getters also work from the root element
 DivElement root2 = renderer.getRoot(root);
@@ -74,7 +75,7 @@
 assertNotNull(root2);
 assertSpanContainsRenderedValue(root2);
 nameSpan = renderer.getNameSpan(root);
-assertSpanContainsRenderedValueText(nameSpan.getFirstChild());
+assertSpanContainsRenderedValueText(RENDERED_VALUE,  
nameSpan.getFirstChild());

   }

   public void testFieldGettersDetachedRoot() {
@@ -197,7 +198,7 @@
   // In prod mode we avoid checking for being the only child
   assertTrue(renderer.isParentOrRenderer(docDiv));
   SpanElement nameSpan = renderer.getNameSpan(docDiv);
-  assertSpanContainsRenderedValueText(nameSpan.getFirstChild());
+  assertSpanContainsRenderedValueText(RENDERED_VALUE,  
nameSpan.getFirstChild());

 } else {
   // in dev mode an explicit check is made
   assertFalse(renderer.isParentOrRenderer(docDiv));
@@ -237,6 +238,14 @@
 assertEquals(Node.ELEMENT_NODE, 

[gwt-contrib] Re: Provides an integration test for IsRenderable (issue1527804)

2011-08-17 Thread Rafael Castro
Awesome, I like #1 too. I was driving to work this morning and thinking
about it: #2 actually encourages bad behavior, because it'll seem it's OK to
fiddle with the elements between calling bind and attaching, and it's really
not. We _could_ make an effort to make it work, but it's much better to make
the flow clearer this way: if you're using lazy widgets, your elements have
to be lazy too.

On Wed, Aug 17, 2011 at 9:41 AM, Ray Ryan rj...@google.com wrote:

 I like #1 too. I think we should try to narrow the visibility of
 PotentialElement as much as we can.

 So #1 means two things , right?

 • Widgets are seated in their @UiFields immediately
 • In an IsRenderable owner, Element and subclasses are only available via
 LazyDomElement, and @UiField Element is a compile time error

 I've tweaked the test a bit (will update soon), and I'm happy to report
 that composites around non-IsRenderables work as expected, with element
 fields filled immediately. Given that I don't think we need to delay the
 switch to using lazy widget builder by default.


 On Wed Aug 17 06:14:52 GMT-700 2011, Hermes Freitas wrote:

 WidgetInterpreter and WidgetPlaceholderInterpreter shouldn't output
 LazyDomElement. Rafa, do you remember why? I don't think this aggregates any
 performance gain for us,  am I missing something?

 And I vote for #1

 On Tue, Aug 16, 2011 at 10:10 PM, Rafael Castro 
 rdcas...@google.comhttp://www.google.com/url?sa=Dq=mailto%3Ardcastro%40google.com
  wrote:

 +hermes

 Good point, this is really tricky. The problem here is that we don't
 actually have the DOM element until the widget is attached. I see 2 options:
 1-) We force the UiField to be a LazyDomElement, so this is explicit.
 2-) We use PotentialElement with a resolver that throws an Exception
 (i.e., it's only really resolved when it's attached).

 what do you think?

 ps.: really nice tests, thanks for putting them together!

 On Tue, Aug 16, 2011 at 5:13 PM, 
 rj...@google.comhttp://www.google.com/url?sa=Dq=mailto%3Arjrjr%40google.com
  wrote:

 On 2011/08/17 00:12:24, rjrjr wrote:

 Ready for review.

 Rafa, this turned up one issue that concerns me: most @UiField fields
 are not filled in until the widget is attached to the dom, but we're not
 consistent about it. See the big comment in testDeep.


 http://gwt-code-reviews.**appspot.com/1527804/http://www.google.com/url?sa=Dq=http%3A%2F%2Fgwt-code-reviews.appspot.com%2F1527804%2F





 --
 --Hermes Freitas



-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Provides an integration test for IsRenderable (issue1527804)

2011-08-17 Thread Ray Ryan
Cool, I've filed
http://code.google.com/p/google-web-toolkit/issues/detail?id=6701.

Can I get an LGTM and submit this thing?


On Wed Aug 17 09:58:03 GMT-700 2011, Rafael Castro wrote:

 Awesome, I like #1 too. I was driving to work this morning and thinking
 about it: #2 actually encourages bad behavior, because it'll seem it's OK to
 fiddle with the elements between calling bind and attaching, and it's really
 not. We _could_ make an effort to make it work, but it's much better to make
 the flow clearer this way: if you're using lazy widgets, your elements have
 to be lazy too.

 On Wed, Aug 17, 2011 at 9:41 AM, Ray Ryan 
 rj...@google.comhttp://www.google.com/url?sa=Dq=mailto%3Arjrjr%40google.com
  wrote:

 I like #1 too. I think we should try to narrow the visibility of
 PotentialElement as much as we can.

 So #1 means two things , right?

 • Widgets are seated in their @UiFields immediately
 • In an IsRenderable owner, Element and subclasses are only available via
 LazyDomElement, and @UiField Element is a compile time error

 I've tweaked the test a bit (will update soon), and I'm happy to report
 that composites around non-IsRenderables work as expected, with element
 fields filled immediately. Given that I don't think we need to delay the
 switch to using lazy widget builder by default.


 On Wed Aug 17 06:14:52 GMT-700 2011, Hermes Freitas wrote:

 WidgetInterpreter and WidgetPlaceholderInterpreter shouldn't output
 LazyDomElement. Rafa, do you remember why? I don't think this aggregates any
 performance gain for us,  am I missing something?

 And I vote for #1

 On Tue, Aug 16, 2011 at 10:10 PM, Rafael Castro 
 rdcas...@google.comhttp://www.google.com/url?sa=Dq=mailto%3Ardcastro%40google.com
  wrote:

 +hermes

 Good point, this is really tricky. The problem here is that we don't
 actually have the DOM element until the widget is attached. I see 2 options:
 1-) We force the UiField to be a LazyDomElement, so this is explicit.
 2-) We use PotentialElement with a resolver that throws an Exception (i.e.,
 it's only really resolved when it's attached).

 what do you think?

 ps.: really nice tests, thanks for putting them together!

 On Tue, Aug 16, 2011 at 5:13 PM, 
 rj...@google.comhttp://www.google.com/url?sa=Dq=mailto%3Arjrjr%40google.com
  wrote:

 On 2011/08/17 00:12:24, rjrjr wrote:

 Ready for review.

 Rafa, this turned up one issue that concerns me: most @UiField fields
 are not filled in until the widget is attached to the dom, but we're not
 consistent about it. See the big comment in testDeep.


 http://gwt-code-reviews.**appspot.com/1527804/http://www.google.com/url?sa=Dq=http%3A%2F%2Fgwt-code-reviews.appspot.com%2F1527804%2F





 --
 --Hermes Freitas




-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Provides an integration test for IsRenderable (issue1527804)

2011-08-17 Thread rjrjr

http://gwt-code-reviews.appspot.com/1527804/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Provides an integration test for IsRenderable (issue1527804)

2011-08-17 Thread rdcastro

LGTM

Got too tangled up in the discussion and forgot the review :-)


http://gwt-code-reviews.appspot.com/1527804/diff/3001/user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.java
File
user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.java
(right):

http://gwt-code-reviews.appspot.com/1527804/diff/3001/user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.java#newcode34
user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.java:34:
* IsRenderable}
missing trailing .

http://gwt-code-reviews.appspot.com/1527804/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r10539 committed - Tweak to allow parent ClassLoader at design time....

2011-08-17 Thread codesite-noreply

Revision: 10539
Author:   scheg...@google.com
Date: Wed Aug 17 06:52:30 2011
Log:  Tweak to allow parent ClassLoader at design time.

Review at http://gwt-code-reviews.appspot.com/1529803

Review by: to...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10539

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java

===
--- /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java	 
Wed Jul 13 10:19:26 2011
+++ /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java	 
Wed Aug 17 06:52:30 2011

@@ -51,6 +51,7 @@
 import org.apache.commons.collections.map.ReferenceIdentityMap;
 import org.apache.commons.collections.map.ReferenceMap;

+import java.beans.Beans;
 import java.io.File;
 import java.io.FileOutputStream;
 import java.io.IOException;
@@ -1179,6 +1180,11 @@
*/
   @Override
   protected Class? loadClass(String name, boolean resolve) throws  
ClassNotFoundException {
+// at design time we want to provide parent ClassLoader, so keep  
default implementation

+if (Beans.isDesignTime()) {
+  return super.loadClass(name, resolve);
+}
+
 Class c = findLoadedClass(name);
 if (c != null) {
   if (resolve) {

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fixes issue where UiRenderer breaks when a field is referenced more than once (issue1525805)

2011-08-17 Thread rjrjr

LGTM

http://gwt-code-reviews.appspot.com/1525805/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: Re: [gwt-contrib] Aw: Regression: instanceof compiler issue

2011-08-17 Thread Ray Ryan
That's a generous offer, but I don't know that anyone is going to be able to
take you up on it. We'll keep an eye out for it here. And if you do manage
to trim your failing code down to something you can share, we'll jump.

Are you building against trunk? If not, you might try and see if the problem
is still there.

On Wed, Aug 17, 2011 at 4:22 AM, dflorey daniel.flo...@gmail.com wrote:

 Hi,
 unfortunately I did not manage to reproduce the issue in a clean project.
 But I'd like to show the issue to someone with my existing projects.
 I've been able to find a workaround by adding the module classes to a fake
 rpc service.

 I could setup a TeamViewer session to show the issue on my machine.

 Daniel

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] [google-web-toolkit] r10540 committed - Provides an integration test for IsRenderable...

2011-08-17 Thread codesite-noreply

Revision: 10540
Author:   rj...@google.com
Date: Wed Aug 17 10:09:20 2011
Log:  Provides an integration test for IsRenderable

Review at http://gwt-code-reviews.appspot.com/1527804

http://code.google.com/p/google-web-toolkit/source/detail?r=10540

Added:
  
/trunk/user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.Deep.ui.xml
  
/trunk/user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.Shallow.ui.xml
  
/trunk/user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.java

 /trunk/user/test/com/google/gwt/uibinder/test/client/LegacyComposite.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/LegacyComposite.ui.xml
  
/trunk/user/test/com/google/gwt/uibinder/test/client/RenderableComposite.java
  
/trunk/user/test/com/google/gwt/uibinder/test/client/RenderableComposite.ui.xml

 /trunk/user/test/com/google/gwt/uibinder/test/client/SimpleRenderable.java
Modified:
 /trunk/user/src/com/google/gwt/user/client/ui/IsRenderable.java
 /trunk/user/src/com/google/gwt/user/client/ui/RenderableStamper.java
 /trunk/user/src/com/google/gwt/user/client/ui/UIObject.java
 /trunk/user/test/com/google/gwt/uibinder/LazyWidgetBuilderSuite.java

===
--- /dev/null
+++  
/trunk/user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.Deep.ui.xml	 
Wed Aug 17 10:09:20 2011

@@ -0,0 +1,45 @@
+!-- 
--
+!-- Copyright 2011 Google  
Inc. --
+!-- Licensed under the Apache License, Version 2.0 (the License);  
you--
+!-- may not use this file except in compliance with the License. You  
may   --
+!-- may obtain a copy of the License  
at--
+!-- 
--
+!--  
http://www.apache.org/licenses/LICENSE-2.0 --
+!-- 
--
+!-- Unless required by applicable law or agreed to in writing,  
software--
+!-- distributed under the License is distributed on an AS IS  
BASIS,  --
+!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express  
or--
+!-- implied. License for the specific language governing permissions  
and   --
+!-- limitations under the  
License. --

+ui:UiBinder
+  xmlns:ui=urn:ui:com.google.gwt.uibinder
+  xmlns:gwt=urn:import:com.google.gwt.user.client.ui
+  xmlns:test=urn:import:com.google.gwt.uibinder.test.client
+  
+  gwt:RenderablePanel ui:field=top styleName=test
+div ui:field=outerDiv class=bleOuter div/div
+test:SimpleRenderable ui:field=outerRenderableOuter  
renderable/test:SimpleRenderable

+gwt:Label ui:field=outerLabelOuter label/gwt:Label
+test:RenderableComposite ui:field=outerComposite/
+
+ui:msg description=A photo promo
+  Outer i18n image
+  gwt:Image ui:field=outerI18nImage styleName=ble /
+  while browsing your photos.
+/ui:msg
+
+gwt:RenderablePanel ui:field=childPanel styleName=test
+  div ui:field=innerDiv class=bleInner div/div
+  test:SimpleRenderable ui:field=innerRenderableInner  
renderable/test:SimpleRenderable

+  gwt:Label ui:field=innerLabelInner label/gwt:Label
+  test:RenderableComposite ui:field=innerComposite/
+
+  ui:msg description=A photo promo
+Inner i18n image
+gwt:Image ui:field=innerI18nImage styleName=ble /
+while browsing your photos.
+  /ui:msg
+/gwt:RenderablePanel
+
+  /gwt:RenderablePanel
+/ui:UiBinder
===
--- /dev/null
+++  
/trunk/user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.Shallow.ui.xml	 
Wed Aug 17 10:09:20 2011

@@ -0,0 +1,19 @@
+!-- 
--
+!-- Copyright 2011 Google  
Inc. --
+!-- Licensed under the Apache License, Version 2.0 (the License);  
you--
+!-- may not use this file except in compliance with the License. You  
may   --
+!-- may obtain a copy of the License  
at--
+!-- 
--
+!--  
http://www.apache.org/licenses/LICENSE-2.0 --
+!-- 
--
+!-- Unless required by applicable law or agreed to in writing,  
software--
+!-- distributed under the License is distributed on an AS IS  
BASIS,  --
+!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express  
or--
+!-- implied. License for the specific language governing permissions  
and   --
+!-- limitations under the  
License. --

+ui:UiBinder
+  xmlns:ui=urn:ui:com.google.gwt.uibinder
+  

Re: Re: [gwt-contrib] Aw: Regression: instanceof compiler issue

2011-08-17 Thread Daniel Florey
Hi Ray,
thanks a lot.
I'll try to check if building against trunk will change things. I've tried
with 2.3 and 2.4rc and both produce the error - it worked fine with 2.04.
After running into the error several times I've not disabled the runAsync
and download everything in a single module. This solves the problem
immediately.
Just some more observations:
- When instantiating the shared classes in the main module they show up as
the specific class
- When instantiating them in the module loaded via runAsync they show up as
object after creation (only when compiled, works all fine in dev mode).
This leads to broken rpc code (serialization fails) and broken instanceof.

Hope this helps,

Daniel

2011/8/17 Ray Ryan rj...@google.com

 That's a generous offer, but I don't know that anyone is going to be able
 to take you up on it. We'll keep an eye out for it here. And if you do
 manage to trim your failing code down to something you can share, we'll
 jump.

 Are you building against trunk? If not, you might try and see if the
 problem is still there.


 On Wed, Aug 17, 2011 at 4:22 AM, dflorey daniel.flo...@gmail.com wrote:

 Hi,
 unfortunately I did not manage to reproduce the issue in a clean project.
 But I'd like to show the issue to someone with my existing projects.
 I've been able to find a workaround by adding the module classes to a fake
 rpc service.

 I could setup a TeamViewer session to show the issue on my machine.

 Daniel

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

  1   2   >